Alerting

Is there a way to exclude a specific day of the month from search results?

SplunkLunk
Path Finder

We do server updates the second Thursday of the month. So I don't want to alert on reboots when that occurs because I'll be inundated with false positives. Is there a way to exclude the second Thursday of every month from a search? Thanks in advance.

0 Karma

somesoni2
Revered Legend

You can do like this. The relative_time in where clause compare current time (the time when the search is running) with 2nd thursday of current month and excludes matching events.

your base search | where relative_time(now(),"@d")!=relative_time(now(),"@mon+2w@w4")
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...