Skip to content

Instantly share code, notes, and snippets.

@xoff00
Created October 3, 2017 23:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xoff00/fc8e074985e48287e31742730d8a3e8b to your computer and use it in GitHub Desktop.
Save xoff00/fc8e074985e48287e31742730d8a3e8b to your computer and use it in GitHub Desktop.
Splunk cluster bundle status on a single line
splunk show cluster-bundle-status | grep -A5 site1 | paste -d " " - - - - - - - | sed -r -e 's/\t/ /g' -e 's/(.uto)?.asu.edu//g' -e 's/[[:alnum:]]\{8\}(-[[:alnum:]]\{4\}){3}-[[:alnum:]]\{12\}//g' -e 's/[[:blank:]]*site1[[:blank:]]*/ /g' -e 's/_bundle//g' -e 's/_validat(ed|ion_)//g' -e 's/_required_apply//g' -e 's/--//g' | sort -V | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment