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!

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