summaryrefslogtreecommitdiff
path: root/elastic/load.sh
diff options
context:
space:
mode:
Diffstat (limited to 'elastic/load.sh')
-rwxr-xr-xelastic/load.sh22
1 files changed, 12 insertions, 10 deletions
diff --git a/elastic/load.sh b/elastic/load.sh
index e7d1990..298d796 100755
--- a/elastic/load.sh
+++ b/elastic/load.sh
@@ -116,6 +116,18 @@ do
done
rm ${TMP_SED_FILE}
+for file in ${DIR}/index-pattern/*.json
+do
+ NAME=`awk '$1 == "\"title\":" {gsub(/[",]/, "", $2); print $2}' ${file}`
+ echo "Loading index pattern ${NAME}:"
+
+ ${CURL} -XPUT ${ELASTICSEARCH}/${KIBANA_INDEX}/index-pattern/${NAME} \
+ -d @${file} || exit 1
+ echo
+done
+
+exit 1
+
for file in ${DIR}/visualization/*.json
do
NAME=`basename ${file} .json`
@@ -133,13 +145,3 @@ do
-d @${file} || exit 1
echo
done
-
-for file in ${DIR}/index-pattern/*.json
-do
- NAME=`awk '$1 == "\"title\":" {gsub(/[",]/, "", $2); print $2}' ${file}`
- echo "Loading index pattern ${NAME}:"
-
- ${CURL} -XPUT ${ELASTICSEARCH}/${KIBANA_INDEX}/index-pattern/${NAME} \
- -d @${file} || exit 1
- echo
-done