Splunk Dev

Why is relative time is search not working?

jip31
Motivator

hi

 

I use this relative time in my search

 

earliest=@d+7h latest=@d+19h 

 

 now I want the same slot time but one day ago (it means between 7h and 19h)

so i am doing this but it doenst works

 

earliest=-1d+7h latest=-1d+19h 

 

what is wrong please?

Labels (1)
Tags (1)
0 Karma

johnhuang
Motivator

Keep in mind that =@d is a short way of expressing =-0d@d. As best practice, I recommend you use =-0d@d. 

 

earliest=-1d@d+7h latest=-1d@d+19h

 

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...