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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...