Splunk Search

Cut the time range


In a search text is it possible to "cut" the time range selected in the "time range picker"?


Selecting "Yesterday" in the time range picker can I cut my search of two hours to obtain events that occurred between 0:00:00 AM and 10:00:00 PM on yesterday?

Selecting "Last 30 days" in the time range picker can I cut my search of two days to obtain events that occurred 28 days ago?

Thank you.

0 Karma


a really simple way to define time would be to include earliest, latest or a combination of the two in your opening search statement.


index=main earliest=-4d@d latest=-1d@d

would search back to between 4 days and 1 day ago.

Probably worth mentioning that you can define your own ranges for the time picker via times.conf too, have a look here;

0 Karma
Get Updates on the Splunk Community!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...