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
Revered Legend

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
Revered Legend

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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...