Skip to content

Instantly share code, notes, and snippets.

@bshuler
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save bshuler/1472adafff5eb341a88d to your computer and use it in GitHub Desktop.

Select an option

Save bshuler/1472adafff5eb341a88d to your computer and use it in GitHub Desktop.
#!/bin/bash
for index in $($SPLUNK_HOME/bin/splunk cmd btool indexes list | grep \\[ | grep -v volume | sed s/\\[//g | sed s/\\]//g)
do
echo
echo [$index]
echo homePath = volume:primary/$index/db
echo coldPath = volume:primary/$index/colddb
echo thawedPath = \$SPLUNK_DB/$index/thaweddb
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment