Last active
August 29, 2015 14:07
-
-
Save bshuler/1472adafff5eb341a88d to your computer and use it in GitHub Desktop.
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/bash | |
for index in $($SPLUNK_HOME/bin/splunk cmd btool indexes list | grep \\[ | grep -v volume | sed s/\\[//g | sed s/\\]//g | grep -v default ) | |
do | |
case "$index" in | |
main) | |
echo | |
echo [main] | |
echo homePath = volume:primary/defaultdb/db | |
echo coldPath = volume:primary/defaultdb/colddb | |
echo thawedPath = \$SPLUNK_DB/defaultdb/thaweddb | |
echo | |
;; | |
history) | |
echo | |
echo [history] | |
echo homePath = volume:primary/historydb/db | |
echo coldPath = volume:primary/historydb/colddb | |
echo thawedPath = \$SPLUNK_DB/historydb/thaweddb | |
echo | |
;; | |
summary) | |
echo | |
echo [summary] | |
echo homePath = volume:primary/summarydb/db | |
echo coldPath = volume:primary/summarydb/colddb | |
echo thawedPath = \$SPLUNK_DB/summarydb/thaweddb | |
echo | |
;; | |
_internal) | |
echo | |
echo [_internal] | |
echo homePath = volume:primary/_internaldb/db | |
echo coldPath = volume:primary/_internaldb/colddb | |
echo thawedPath = \$SPLUNK_DB/_internaldb/thaweddb | |
echo | |
;; | |
_audit) | |
echo | |
echo [_audit] | |
echo homePath = volume:primary/audit/db | |
echo coldPath = volume:primary/audit/colddb | |
echo thawedPath = \$SPLUNK_DB/audit/thaweddb | |
echo | |
;; | |
_thefishbucket) | |
echo | |
echo [_thefishbucket] | |
echo homePath = volume:primary/fishbucket/db | |
echo coldPath = volume:primary/fishbucket/colddb | |
echo thawedPath = \$SPLUNK_DB/fishbucket/thaweddb | |
echo | |
;; | |
_blocksignature) | |
echo | |
echo [_blocksignature] | |
echo homePath = volume:primary/blockSignature/db | |
echo coldPath = volume:primary/blockSignature/colddb | |
echo thawedPath = \$SPLUNK_DB/blockSignature/thaweddb | |
echo | |
;; | |
*) | |
echo | |
echo [$index] | |
echo homePath = volume:primary/$index/db | |
echo coldPath = volume:primary/$index/colddb | |
echo thawedPath = \$SPLUNK_DB/$index/thaweddb | |
echo | |
esac | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment