Recent Log Entries
list_log_entriesRetrieves host and service alert log entries from the last specified hours, newest first. Resolves host and service names for each entry.
Instructions
Host and service alert log entries from the last hours hours, newest first.
Each entry resolves its host and service name, costing one extra API request per entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How many hours back to look. | |
| limit | No | Maximum rows to return. Defaults to 50, maximum 500. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | How to narrow the query when truncated. | |
| count | Yes | Number of rows in `items`. | |
| items | Yes | The rows, at most `limit` of them. | |
| truncated | Yes | True if openITCOCKPIT held more rows than were returned. |