ssh_search_logs
Search system logs on remote Linux servers using journalctl or grep. Supports pattern matching, specific log paths, and time-based filtering.
Instructions
Search system logs using journalctl or grep.
Args: pattern: Search pattern log_path: Specific log file path (if empty, uses journalctl) session_name: SSH session to use since: Time filter for journalctl (e.g., '1 hour ago', '2024-01-01', 'today')
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": {
"pattern": "<pattern>"
},
"name": "ssh_search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| pattern | Yes | ||
| log_path | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |