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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...