Skip to content

Instantly share code, notes, and snippets.

@dky
Created April 4, 2014 20:23
Show Gist options
  • Save dky/9982457 to your computer and use it in GitHub Desktop.
Save dky/9982457 to your computer and use it in GitHub Desktop.
Splunk private index sum
cd /opt/splunk/var/lib/splunk && for i in `ls -1 -d */| less |egrep -iv "summary|audit|authDb|blockSignature|defaultdb|hashDb|fishbucket|_internaldb|notable|notabledb|persistentstorage|session_*|appserver|historydb"`; do du -sk $i; done | awk '{ SUM += $1} END { print SUM/1024/1024 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment