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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ossec_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |