analyze_logs
Identify and extract errors, warnings, and critical messages from server log files using customizable search patterns. Designed for remote server monitoring on OPS MCP Server.
Instructions
分析服务器日志文件中的错误和警告
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | ||
| lines | No | ||
| log_file | No | /var/log/syslog | |
| password | No | ||
| pattern | No | error|fail|critical | |
| port | No | ||
| timeout | No | ||
| username | Yes |
Input Schema (JSON Schema)
{
"properties": {
"hostname": {
"title": "Hostname",
"type": "string"
},
"lines": {
"default": 100,
"title": "Lines",
"type": "integer"
},
"log_file": {
"default": "/var/log/syslog",
"title": "Log File",
"type": "string"
},
"password": {
"default": "",
"title": "Password",
"type": "string"
},
"pattern": {
"default": "error|fail|critical",
"title": "Pattern",
"type": "string"
},
"port": {
"default": 22,
"title": "Port",
"type": "integer"
},
"timeout": {
"default": 30,
"title": "Timeout",
"type": "integer"
},
"username": {
"title": "Username",
"type": "string"
}
},
"required": [
"hostname",
"username"
],
"title": "analyze_logsArguments",
"type": "object"
}