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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...