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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...