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!

Announcing Scheduled Export GA for Dashboard Studio

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

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 GA in US-AWS!

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