Skip to content

Instantly share code, notes, and snippets.

@xoff00
xoff00 / gist:fc8e074985e48287e31742730d8a3e8b
Created October 3, 2017 23:37
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