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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...