-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathload.sh
More file actions
executable file
·34 lines (30 loc) · 734 Bytes
/
Copy pathload.sh
File metadata and controls
executable file
·34 lines (30 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
if [ -z "$1" ]; then
ELASTICSEARCH=http://localhost:9200
else
ELASTICSEARCH=$1
fi
for file in dashboards/search/*.json
do
name=`basename $file .json`
echo "Loading search $name:"
curl -XPUT $ELASTICSEARCH/.kibana/search/$name \
-d @$file || exit 1
echo
done
for file in dashboards/visualization/*.json
do
name=`basename $file .json`
echo "Loading visualization $name:"
curl -XPUT $ELASTICSEARCH/.kibana/visualization/$name \
-d @$file || exit 1
echo
done
for file in dashboards/dashboard/*.json
do
name=`basename $file .json`
echo "Loading dashboard $name:"
curl -XPUT $ELASTICSEARCH/.kibana/dashboard/$name \
-d @$file || exit 1
echo
done