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!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...