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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...