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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...