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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...