Run Oneshot Search
run_oneshot_searchRun a Splunk search to completion and return the first page of results. If more results exist, retrieve them by job ID and offset.
Instructions
Run a Splunk search, wait for completion, and return one page of results. A job is kept so later pages can be fetched with get_search_job_results. Prefer run_splunk_search for long-running queries.
If has_more is true, call get_search_job_results with job_id and offset=next_offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Page size 1-100 (default 50; 0 uses default) | |
| query | Yes | SPL to execute | |
| offset | No | Result offset (default 0) | |
| latest_time | No | End time (default 'now') | now |
| max_results | No | Deprecated alias for count | |
| earliest_time | No | Start time (default '-15m') | -15m |