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')
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 |