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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...