search_alerts
Search OSSEC alerts by free-text query across rule descriptions, source IPs, agent names, log content, and more. Filter results by time range and limit.
Instructions
Search OSSEC alerts using a free-text query.
Searches across all alert fields including rule descriptions, source IPs, agent names, log content, and more.
Args: query: Search string to match across alert content. limit: Maximum number of matching alerts to return (default: 50). time_range: Optional time range filter (e.g., '1h', '24h', '7d').
Returns: JSON array of matching alert objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| limit | No | ||
| time_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |