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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...