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!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...