Dashboards & Visualizations

How to setup a token within splunk query which appends the Month and Year to the file name in outputcsv command?

arrangineni
Path Finder

I am trying to setup a scheduled report which saves the results in CSV format on a server, trying to append the previous month and year details within the name of the report. Current search is scheduled to run on 1st of every month looking for the last month results.

Can you suggest anything on this which can work with my query

...| outputcsv $token$.csv

0 Karma

somesoni2
SplunkTrust
SplunkTrust
0 Karma
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 ...