Skip to content

Instantly share code, notes, and snippets.

@automine
Last active October 18, 2018 16:17
Show Gist options
  • Save automine/2ea63330bf4f33fd0b966779941c4cf5 to your computer and use it in GitHub Desktop.
Save automine/2ea63330bf4f33fd0b966779941c4cf5 to your computer and use it in GitHub Desktop.
Remove Splunk /etc/system/local configs - Linux
#!/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
@automine
Copy link
Author

Use at your own risk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment