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!

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...

What's New in Splunk Observability - October 2025

What’s New?    We’re excited to announce the latest enhancements to Splunk Observability Cloud and share ...