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 Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...