query_splunk
Run SPL searches to retrieve Splunk data within a specified time range, returning up to a configurable number of results.
Instructions
Run an SPL search and return results (runs as you; Splunk enforces data access). Use the splunk_docs tool (topic 'spl') to verify command syntax before composing queries. DOCUMENTATION-FIRST: read the official Splunk docs (use the splunk_docs tool) before writing SPL or a dashboard definition; do not guess syntax or schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SPL query. A bare term expression is auto-prefixed with 'search'. | |
| latest | No | Latest time (e.g. now). Default now. | |
| earliest | No | Earliest time (e.g. -24h@h, -7d, 0). Default -24h@h. | |
| maxResults | No | Max results (default 100, max 10000). |