Alerting

Pausing a single forwarder?

JRG_Jeff
Engager

Hi there!

I have a server that will be down for sometime, and I would like to not be inundated with "missing forwarder" alerts.  Is there a way to "pause" that alert for just that server?

 

Thanks in advance!

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no built-in way to do that with core Splunk.  You have to modify the alert to ignore the forwarder.  When maintenance is over, remember to revert the alert. 

Consider having the alert consult a lookup file of servers to ignore.  Then you just have to update the file when a server is going to be unavailable.

---
If this reply helps you, Karma would be appreciated.

gcusello
SplunkTrust
SplunkTrust

Hi @JRG_Jeff,

you could insert in your missing forwarder alert a lookup to whitelist the forwarder to check or to blacklist the forwarders to not check.

In other words, if the liste of the forwarders to check is in a lookup called parameter.csv, you could use a search like this:

| metasearch index=_internale
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

in this way you check only the forwarders in perimeter and to avoid an alert for in maintenance forwarder, you can temporary delete it from the lookup.

Otherwise, you could create a blacklist lookup (called e.g. blacklisted_forwarders.csv9 and run something like this:

| metasearch index=_internale NOT [ | inputlookup blacklisted_forwarders.csv | fields host ]
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

Ciao.

Giuseppe

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...