search_logs
Execute LEQL queries to search log sets in InsightIDR for incident investigation and threat analysis.
Instructions
Execute a LEQL (Log Entry Query Language) query against a specific log set in InsightIDR
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End time as Unix timestamp in milliseconds | |
| from | No | Start time as Unix timestamp in milliseconds | |
| query | Yes | LEQL query statement (e.g., 'where(source_address = 10.0.0.1)', 'where(action = BLOCK) groupby(source_address) calculate(count)') | |
| per_page | No | Number of log entries per page (1-500) | |
| log_set_id | Yes | ID of the log set to search. Use list_log_sets to find available log sets. | |
| time_range | No | Relative time range (e.g., 'Last 1 Hour', 'Last 24 Hours', 'Last 7 Days'). Used when from/to are not specified. |