Documentation:
3.1.5
Note: this page has not been fully updated for 3.0.
The command-line search API supports the exact same syntax as the Splunk box, with additonal parameters.
Actionswhere range is n items returned from the full results. Example:
splunk search 404 -get sources::0-9
returns the first 10 sources from the specified search.
splunk search -get hosts "smtp NOT success hoursago::1"
By default only 100 events are returned when a search is done from the CLI. This can be changed by adding maxresults:: to your search. For large searches, we recommend you use the "raw" output type to reduce memory usage.
splunk search -output rawevents "meta::all minutesago::120 maxresults::100000"
Comments
No comments have been submitted.