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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...