Splunk Search

Need some help with Syntax

MBerikcurtis
Path Finder

I like to show results only for times between 7pm and 7am Monday through Friday OR anytime on Saturday or Sunday. I'd like to do this within the same search.

I'm using:

(date_wday="s*" OR (date_hour > 19 AND date_hour < 7))
Tags (2)
0 Karma
1 Solution

Ayn
Legend

date_hour can't both be more than 19 and less than 7 at the same time. You probably want OR instead of AND there.

View solution in original post

Ayn
Legend

date_hour can't both be more than 19 and less than 7 at the same time. You probably want OR instead of AND there.

MBerikcurtis
Path Finder

Perfect! Can't believe I missed that.

0 Karma
Get Updates on the Splunk Community!

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 ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...