get_ossec_logs
Fetch OSSEC internal logs for troubleshooting and monitoring. Optionally filter by line count and category.
Instructions
Get OSSEC internal logs (ossec.log).
Retrieves the latest entries from OSSEC's own log file, useful for troubleshooting and monitoring OSSEC's operation.
Args: lines: Number of log lines to retrieve (default: 100). category: Optional filter by log category (e.g., 'ossec-analysisd', 'ossec-remoted', 'error', 'warning').
Returns: JSON array of log lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |