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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...