Commit 1cfb5bff authored by ijaz ahmad's avatar ijaz ahmad Committed by GitHub
Browse files

Update saving-es-dashboard-schemas

parent 38c43691
......@@ -4,12 +4,15 @@ git clone
cd cms-bot/es-kibana-dashboards
declare -a DASH_BOARDS=('RelVals' 'Jenkins' 'IBs' 'JobReports' 'IWYU' 'IB+Unit+Tests' 'CMSREP' 'IBsDataSets' 'Hypernews' 'Main')
#declare -a DASH_BOARDS=('RelVals' 'Jenkins' 'IBs' 'JobReports' 'IWYU' 'IB+Unit+Tests' 'CMSREP' 'IBsDataSets' 'Hypernews' 'Main')
for dashboard in "${DASH_BOARDS[@]}"
curl "http://<user>:<password>@<es-host>$dashboard?pretty"|sed 's/\\/''/g' >${dashboard}.json
#for dashboard in "${DASH_BOARDS[@]}"
# do
# curl "http://<user>:<password>@<es-host>$dashboard?pretty"|sed 's/\\/''/g' >${dashboard}.json
# done
#get all dashboards in one query
curl 'http::/<user><pass>@<es-host>:9200/kibana-int/_search/?size=100&pretty=true' -d '{ "query" : { "match_all" : {} }}' | sed 's/\\//g'>dashboards-schema.json
git commit -a -m "kibana dashbaords upated"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment