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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...