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? 

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!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...