splunk_search
Execute a synchronous SPL search within explicit earliest and latest time bounds, returning paginated results for Splunk data analysis.
Instructions
Execute a synchronous blocking SPL search within an explicit time window.
Args: spl: SPL search string (e.g. 'index=_internal | stats count by sourcetype'). earliest_time: Earliest time bound (e.g. '-24h@h', '-15m', '1710000000'). latest_time: Latest time bound (e.g. 'now', '@h'). count: Maximum number of results to retrieve (capped by SPLUNK_MAX_RESULTS). offset: Offset index for pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spl | Yes | ||
| count | No | ||
| offset | No | ||
| latest_time | No | ||
| earliest_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Output payload or results | |
| error | No | Error message if execution failed | |
| success | No | Whether the tool execution succeeded | |
| metadata | No | Execution timing, pagination and environment details | |
| warnings | No | Operational warnings or notices | |
| request_id | No | Correlation ID for audit trail and observability |