search_logs
Search logs across remote servers using grep patterns, with optional time range and result limits, to quickly locate relevant entries across multiple machines.
Instructions
Search application logs on remote servers using grep patterns
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_name": "<server_name>",
"pattern": "<pattern>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Grep pattern to search for in logs | |
| time_range | No | Time range filter (e.g., '1h', '30m', '2d', '2024-01-01 to 2024-01-02') | |
| max_results | No | Maximum number of results to return per server | |
| server_name | Yes | Name of the server to search (use 'all' for all servers) |