Reporting

Save reports in shared folders

RayLio
New Member

Hallo Splunk community,

I have a report environment with many different reports.

Now I want to push those generated Reports as files(.csv) to a networkshare or filesystem of another server. And its not only one share, I have reportgroups that should be seperated in differnent shares.

Whats the best way to do this ?

Regards

Ray

Tags (2)
0 Karma

woodcock
Esteemed Legend

Decide on a naming convention for your files (e.g. "MySillyFiles-YYYY-MM-DD.csv"). Setup a cron job on your Search Head to look for files in $SPLUNK_HOME/var/run/splunk/ and transfer them to your share (deleting them afterwards). Then setup a saved search to generate the files and end it with | outputcsv.

mcomfurf
Path Finder

Forgive me if I'm being thick, but I do not understand how I get my report output to save there with a naming convention.

0 Karma

woodcock
Esteemed Legend

You are going to have to write some kind of transfer script so you can name it the same in every search and have the script change the name or you can write with runtime-based convention as explained here:

http://answers.splunk.com/answers/39974/variable-file-name-in-outputcsv.html

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...