Splunk Search

earliest and latest times for each hour of a day ?

rakesh_498115
Motivator

Hi

How can give earliest and latest times for each hour of day of previous day .

i.e first hour , second hour ,third hour and so on

earliest=-0h@d latest=-1h@d
earliest=-1h@d latest=-2h@d
earliest=-2h@d latest=-3h@d

and so on...

but this seems not working ?? any generic way of giving them pls

Tags (1)
0 Karma

gfuente
Motivator

Hello

I think you are looking for this:

earliest=-1d@d+1h latest=-1d@d+2h

This will give you: yesterday between 1 AM and 2 AM, if you change the values of the +1h and +2h you can select any given hour range from yesterday

Regards

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 ...