Splunk Search

Export csv data to specific folder

Learner
Path Finder

Hi everyone, below is my sample query

 

index=xyz source=ABC | stats count

 

If I schedule this search then result have to saved on path "C:\\demo" automatically. I don't have access to \var repository so cannot make changes over there. I'm using windows OS. How i can get the data on path automatically? 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Learner,

you have two solutions:

  • a scheduled script that moves the files from var/run/splunk/csv to another folder;
  • modify the python script that creates the csv.

The second is really difficoult, but the first it's easy.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...