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!

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

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...