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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...