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

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...