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
Revered Legend
0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...