Getting Data In

Is there a way to directly get the results as csv using a browser

spammenot66
Contributor

Is there a way to view a splunk query directly as a CVS?

In reviewing the REST API the curl command below gets me the output as CSV

curl -k -u userABC:pass#### https://splunk.server:8089/services/search/jobs/1488985371.7077_D6AE46D6-FC4C-48A5-9F24-7912363C18D1... -d output_mode=csv --get

when i copy and past the URL (https://splunk.server:8089/services/search/jobs/1488985371.7077_D6AE46D6-FC4C-48A5-9F24-7912363C18D1...) into a browser, it displays it as an xml. Is there a way to display this URL as a csv in a browser?

0 Karma

niketn
Legend

Run the following direcly in Splunk Search. Make use of rest generating command which outputs results in table.

| rest /services/search/jobs/1488985371.7077_D6AE46D6-FC4C-48A5-9F24-7912363C18D1/results/

Refer to Splunk documentation for details: http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rest

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
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 ...