Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ijaz Ahmad
system-admin
Commits
1cfb5bff
Commit
1cfb5bff
authored
Jul 28, 2016
by
ijaz ahmad
Committed by
GitHub
Jul 28, 2016
Browse files
Update saving-es-dashboard-schemas
parent
38c43691
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
saving-es-dashboard-schemas
saving-es-dashboard-schemas
+8
-5
No files found.
saving-es-dashboard-schemas
View file @
1cfb5bff
...
...
@@ -4,12 +4,15 @@ git clone git@github.com:cms-sw/cms-bot.git
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
[@]
}
"
do
curl
"http://<user>:<password>@<es-host>.cern.ch:9200/kibana-int/dashboard/
$dashboard
?pretty"
|sed
's/\\/''/g'
>
${
dashboard
}
.json
done
#for dashboard in "${DASH_BOARDS[@]}"
# do
# curl "http://<user>:<password>@<es-host>.cern.ch:9200/kibana-int/dashboard/$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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment