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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...