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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...