Getting Data In

Is there anyway to generate and store CSV files in a specific folder of a server

kirrusk
Communicator

I'm running a report which will trigger email with csv attachment.

Here , I want to store all those csv files to a specific folder in server directly , without manual intervention,

Found some options in splunk like using outputcsv or outputlookup, But these are storing results in default directories.

Struggling to find the best solution on this, Is any one can help on this.

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kirrusk,
the outputcsv folder is fixed and it isn't possible to change it.

You have two ways to solve your problem:

  • create a scheduled shell script that moves the files from $SPLUNK_HOME/var/run/splunk/csv to your folder;
  • modify a Splunk python script, but you must have a deep knowledhe of Splunk to do this so I don't hint this method!

Ciao.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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