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
Legend

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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...