Splunk Search

Specific time of the day search for the past 6 months

karambaz
New Member

Hi There,

Currently I'm using Splunk 4.3.

Need help on how to write a query to specify a timeframe so that i get data for every day 12AM to 6 AM for the last 6 months.

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi karambaz,

try something like this:

your base search earliest=-6mon date_hour<=06

this will return all events between 12AM and 6AM, this is because 12AM is searchable as date_hour=00 within Splunk.

hope this helps ...

cheers, MuS

Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...