Monitoring Splunk

How to temporarily Disable Monitoring on a Server(s) using PowerShell?

Strange_Brew
Observer

I want to temporarily disable alerts on servers while they are being patched or put into maintenance mode. Is it possible to do this via PowerShell/REST?

0 Karma

chaker
Contributor

If this for Splunk Enterprise Security or Splunk IT Service Intelligence, see the docs about maintance modes and noteable event suppression.
ITSI
https://docs.splunk.com/Documentation/ITSI/4.13.1/Configure/AboutMW
ES
https://docs.splunk.com/Documentation/ES/7.0.1/User/Takeactiononanotableevent#:~:text=Suppress%20a%2....

For Splunk Enterprise alerts via REST you could try this solution:
https://community.splunk.com/t5/Alerting/How-do-you-disable-enable-alerts-via-the-REST-API/m-p/44155...

Stopping the universal forwarder process as part of maintaince could be another option, but there are implication's to this. Transient inputs like scripted or network inputs will be lost, also doing this on mass on as a regular occurence may not result in the most optimal index/buckets.

 

 

 

0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...