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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...