Getting Data In

how to export search result to my local directories in csv

newsm106
Explorer

Hello guys!!
I am beginner of Splunk.
I want to export search result to my local directories(windows 7) in csv. ( not to $SPLUNK_HOME/var/run/splunk)
Is there solution??
please help me.

Tags (2)
0 Karma
1 Solution

lpolo
Motivator

This is an approach:

1) Create the saved search.
2) Create a python script to call the saved search you created. Then, save the results in csv in the directory you want.
3) Schedule the python script as a script input in Splunk.

I hope it helps.

Lp

View solution in original post

0 Karma

lpolo
Motivator

This is an approach:

1) Create the saved search.
2) Create a python script to call the saved search you created. Then, save the results in csv in the directory you want.
3) Schedule the python script as a script input in Splunk.

I hope it helps.

Lp

0 Karma

somesoni2
SplunkTrust
SplunkTrust

My bad, it is possible through CLI. See the last comment on the accepted answer of below link.

http://answers.splunk.com/answers/42067/can-search-results-be-exported-using-a-command-in-the-search...

0 Karma

newsm106
Explorer

thanks for your answer. but i want to export scheduled search result every day.

0 Karma

somesoni2
SplunkTrust
SplunkTrust

As far as I know this is not possible through any search command or using CLI (output defaults to var/run/splunk). from UI-> Export button your can save it to local disk.

Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...