Reporting

What's wrong with my curl command? I'm not getting all of the records

prasanthvarma08
New Member

I am making an api call to a saved search using curl and saved search has 1800 records but the results from my saved search are only 100, can you please suggest me on how to retrieve all 1800 records.

This is how my curl api command to retrieve results look:::
curl -k -u user:password -o test.csv https://splunk.com:8888/services/search/jobs/sid/results --get -d output_mode=csv

0 Karma

somesoni2
Revered Legend

The default number of results returned is 100. You would need to pass parameter count with suitable number or 0 for all available results. See this for more details
http://docs.splunk.com/Documentation/Splunk/6.2.6/RESTREF/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7D...

curl -k -u user:password -o test.csv https://splunk.com:8888/services/search/jobs/sid/results --get -d output_mode=csv -d count=0
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...