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.

Revisions

  1. bshuler revised this gist Oct 1, 2014. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions printindexs.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ echo
    echo [main]
    echo homePath = volume:primary/defaultdb/db
    echo coldPath = volume:primary/defaultdb/colddb
    echo thawedPath = $SPLUNK_DB/defaultdb/thaweddb
    echo thawedPath = \$SPLUNK_DB/defaultdb/thaweddb
    echo
    ;;
    @@ -17,17 +17,17 @@ echo
    echo [history]
    echo homePath = volume:primary/historydb/db
    echo coldPath = volume:primary/historydb/colddb
    echo thawedPath = $SPLUNK_DB/historydb/thaweddb
    echo thawedPath = \$SPLUNK_DB/historydb/thaweddb
    echo
    ;;
    summary)
    echo
    echo [summary]
    echo homePath = volume:primary/summary/db
    echo coldPath = volume:primary/summary/colddb
    echo thawedPath = $SPLUNK_DB/summary/thaweddb
    echo homePath = volume:primary/summarydb/db
    echo coldPath = volume:primary/summarydb/colddb
    echo thawedPath = \$SPLUNK_DB/summarydb/thaweddb
    echo
    ;;
    @@ -36,7 +36,7 @@ echo
    echo [_internal]
    echo homePath = volume:primary/_internaldb/db
    echo coldPath = volume:primary/_internaldb/colddb
    echo thawedPath = $SPLUNK_DB/_internaldb/thaweddb
    echo thawedPath = \$SPLUNK_DB/_internaldb/thaweddb
    echo
    ;;
    @@ -45,7 +45,7 @@ echo
    echo [_audit]
    echo homePath = volume:primary/audit/db
    echo coldPath = volume:primary/audit/colddb
    echo thawedPath = $SPLUNK_DB/audit/thaweddb
    echo thawedPath = \$SPLUNK_DB/audit/thaweddb
    echo
    ;;
    @@ -54,7 +54,7 @@ echo
    echo [_thefishbucket]
    echo homePath = volume:primary/fishbucket/db
    echo coldPath = volume:primary/fishbucket/colddb
    echo thawedPath = $SPLUNK_DB/fishbucket/thaweddb
    echo thawedPath = \$SPLUNK_DB/fishbucket/thaweddb
    echo
    ;;
    @@ -63,7 +63,7 @@ echo
    echo [_blocksignature]
    echo homePath = volume:primary/blockSignature/db
    echo coldPath = volume:primary/blockSignature/colddb
    echo thawedPath = $SPLUNK_DB/blockSignature/thaweddb
    echo thawedPath = \$SPLUNK_DB/blockSignature/thaweddb
    echo
    ;;
  2. bshuler revised this gist Oct 1, 2014. 1 changed file with 70 additions and 1 deletion.
    71 changes: 70 additions & 1 deletion printindexs.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,80 @@
    #!/bin/bash

    for index in $($SPLUNK_HOME/bin/splunk cmd btool indexes list | grep \\[ | grep -v volume | sed s/\\[//g | sed s/\\]//g)
    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/summary/db
    echo coldPath = volume:primary/summary/colddb
    echo thawedPath = $SPLUNK_DB/summary/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
  3. bshuler created this gist Oct 1, 2014.
    11 changes: 11 additions & 0 deletions printindexs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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