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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...