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!

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

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...