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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...