Last active
October 18, 2018 16:17
-
-
Save automine/2ea63330bf4f33fd0b966779941c4cf5 to your computer and use it in GitHub Desktop.
Remove Splunk /etc/system/local configs - Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ -d "/opt/splunk" ] && SPLUNKPATH="/opt/splunk" | |
[ -d "/opt/splunkforwarder" ] && SPLUNKPATH="/opt/splunkforwarder" | |
[ -f "$SPLUNKPATH/etc/system/local/inputs.conf" ] && rm -f $SPLUNKPATH/etc/system/local/inputs.conf | |
[ -f "$SPLUNKPATH/etc/system/local/outputs.conf" ] && rm -f $SPLUNKPATH/etc/system/local/outputs.conf | |
[ -f "$SPLUNKPATH/etc/system/local/deploymentclient.conf" ] && rm -f $SPLUNKPATH/etc/system/local/deploymentclient.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use at your own risk