Splunk Search

Saved Search Start and End Time

shangshin
Builder

Hi,
I would like to run a daily report at 3 AM and the time range should be Start Time 00:00:00 Finish Time 23:59:59. However, I can't find the equivalent time modifier.

I tried to use start time -1d@d but it didn't work unless the search is scheduled at 12 AM sharp.

Please advise the right values to achieve this goal.

Tags (3)
0 Karma
1 Solution

emiller42
Motivator

I'm assuming you want the entire previous day from midnight to midnight. That being the case, start time of -1d@d and end time of @d should give you the timeframe you're looking for.

View solution in original post

vincesesto
Communicator

Hi shangshin,

Have you tried to set the latest time as well...for example earliest=-1d@d latest=@d as this should get you from 12am to the end of that 24 hour time span.

If not...can you please post the entire search that you are putting in place with an example of the data that you are searching through as this would help with a possible solution.

Regards,

Vince

emiller42
Motivator

I'm assuming you want the entire previous day from midnight to midnight. That being the case, start time of -1d@d and end time of @d should give you the timeframe you're looking for.

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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