Splunk Search

Defining search timeframe from midnight to now

beaumaris
Communicator

We have situations where we just want to show what happened "today", which is defined as from Midnight to now. That's easy to say in English, and it's easy to define latest=now, but I am having trouble figuring out what to specify as the 'earliest' value to get Splunk to understand midnight.

Tags (2)
1 Solution

southeringtonp
Motivator

Midnight is just zero hours, relative to the current day, so you can use:

 earliest=-0h@d

or just:

earliest=@d

You should also have Today available as an option in the TimeRangePicker.

View solution in original post

southeringtonp
Motivator

Midnight is just zero hours, relative to the current day, so you can use:

 earliest=-0h@d

or just:

earliest=@d

You should also have Today available as an option in the TimeRangePicker.

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...