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?

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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...