Reporting

How to Schedule a Report for multiple Year-Month variables from a drop down list

promukh
Path Finder

Hello Experts,

I do have a search with multiple appends on a Dashboard Panel  , which is taking longer than usual to generate the results.

There is dropdown in the panel with Month-Year values generated , which is feeded into the search as variable when end-user selects one.

Drop Down Values are as shown below -  ( 3 Months Interval ) 

Jan 2021

Apr 2021

Jul 2021

Oct 2021

Jan 2022

The search is feeded with one of the values from the above as shown below  ..

|search ..| fields MonthYear,field1,field2,field3 | where MonthYear="$month$" | table field1,field2,field3.

Given the search is taking longer amount of time , we plan to schedule it through a report and run once a Day and store the results beforehand .

Will it be possible to schedule the report run with all the above mentioned "MonthYear" values ? how can we achieve the same ?

Any leads is appreciated  , Thanks

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @promukh,

you could schedule to run the report every three months saving results in a Summary index.

Then you can search on this index.

in other words, you have to:

create a summary index called e.g. "my_reports"

schedule a search like this every three months after the 1st of the month: 

Your_search earliest=-3mon@mon latest=@mon
| table _time my_fields
| collect index=my_reports

run a search like this:

index=my_reports
| table my_fields

 Ciao.

Giuseppe

View solution in original post

promukh
Path Finder

thanks @gcusello  , i will try the solution 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @promukh,

you could schedule to run the report every three months saving results in a Summary index.

Then you can search on this index.

in other words, you have to:

create a summary index called e.g. "my_reports"

schedule a search like this every three months after the 1st of the month: 

Your_search earliest=-3mon@mon latest=@mon
| table _time my_fields
| collect index=my_reports

run a search like this:

index=my_reports
| table my_fields

 Ciao.

Giuseppe

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...