All Apps and Add-ons

While running searches via REST API from Unix box, only 100 lines show exporting to CSV. How do I return more lines?

sahoo0233
Path Finder

Hi,

I am running the following curl command
***curl -u admin:password -k https://splunkhost:8089/services/search/jobs/sid/results?output_mode=csv > suspicious.csv***

On a Unix box to export the search result in csv format, but the search result only shows 101 rows of results. but there is more than 101 results.

How can i get all the results rows in that csv ?

0 Karma
1 Solution

sahoo0233
Path Finder

curl --get -k -u admin:changeme -d "output_mode=csv" -d "count=0" https://localhost:8089/servicesNS/admin/search/search/jobs/1310082457.10/results > doc.csv

If we try the above command then this will be showing all the results

View solution in original post

0 Karma

sahoo0233
Path Finder

curl --get -k -u admin:changeme -d "output_mode=csv" -d "count=0" https://localhost:8089/servicesNS/admin/search/search/jobs/1310082457.10/results > doc.csv

If we try the above command then this will be showing all the results

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 ...