ansible-log-hunter
Search and correlate log events across multiple hosts using regex patterns and time-based windows to pinpoint issues.
Instructions
Advanced log hunting and correlation across multiple sources.
Args: host_pattern: Target hosts pattern search_patterns: List of regex patterns to search for log_paths: List of log file paths (defaults to common system logs) project_root: Project root directory ansible_cfg_path: Ansible config file path inventory_paths: Inventory file paths time_range: Time range for logs (e.g., '1h', '24h', '7d') correlation_window: Time window in seconds for event correlation
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": {
"host_pattern": "<host_pattern>",
"search_patterns": "<search_patterns>"
},
"name": "ansible-log-hunter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_paths | No | ||
| time_range | No | ||
| host_pattern | Yes | ||
| project_root | No | ||
| inventory_paths | No | ||
| search_patterns | Yes | ||
| ansible_cfg_path | No | ||
| correlation_window | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||