Dashboards & Visualizations

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

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

Revered Legend
0 Karma
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!


Or Learn More in Our Blog >>