Splunk Search

How to give time modifiers to run the search query from yesterday morning 5 am to today morning 5 am ?

rakesh_498115
Motivator

Hi All,

Can anyone help me on the time modifiers ... for giving the earliest and latest for yesterday morning 5 am to today morning 5 am.

earliest=-1d@5h latest=-0d@5h but this doesnt work

thanks.

Tags (1)
1 Solution

tom_frotscher
Builder

Hi,

try earliest=-1d@d+5h and latest=@d+5h

Greetings

Tom

View solution in original post

MuS
Legend

Hi rakesh_498115,

how about:

earliest=10/07/2014:05:00:00 latest=10/08/2014:05:00:00

if run today. See docs for more details http://docs.splunk.com/Documentation/Splunk/6.1.4/Search/Specifytimemodifiersinyoursearch

cheers, MuS

rakesh_498115
Motivator

I was looking for generic timestamp Mus. Thanks for ur reply.. 🙂

0 Karma

tom_frotscher
Builder

Hi,

try earliest=-1d@d+5h and latest=@d+5h

Greetings

Tom

rakesh_498115
Motivator

Great tom.. missed this + sign.. thanks 🙂

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...