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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...