Reporting

How to set a dynamic time parameter to scheduled saved search?

newbie2tech
Communicator

Hi Team,

I have a scheduled saved search which generates the csv file on the splunk server. Everyday it runs at 7 am and gets the data for previous day[yesterday] as a csv file.

Now i have a requirement where the team wants to generate csv files, 1 file per day for 3 months worth of data from last year[ say jan- apr].

My question is how can i generate csv file 1 per day [ jan 1, jan2 , jan3 ...mar 31] for this historical data using saved searches, how to pass different earliest and latest times for each runs.

Can you please suggest some solutions other than using python/sdk.

Thanks!

Splunk 6.5.1

0 Karma

valiquet
Contributor

|your saved search | stats min(time), max(time) | outputlookup append=t year.csv

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...