Add dashboard template
[scripts.git] / elastic / load.sh
index c077948..a50083a 100755 (executable)
@@ -126,20 +126,20 @@ do
     echo
 done
 
-for file in ${DIR}/visualization/*.json
+for file in ${DIR}/dashboard/*.json
 do
     NAME=`basename ${file} .json`
-    echo "Loading visualization ${NAME}:"
-    ${CURL} -XPUT ${ELASTICSEARCH}/${KIBANA_INDEX}/visualization/${NAME} \
+    echo "Loading dashboard ${NAME}:"
+    ${CURL} -XPUT ${ELASTICSEARCH}/${KIBANA_INDEX}/dashboard/${NAME} \
         -d @${file} || exit 1
     echo
 done
 
-for file in ${DIR}/dashboard/*.json
+for file in ${DIR}/visualization/*.json
 do
     NAME=`basename ${file} .json`
-    echo "Loading dashboard ${NAME}:"
-    ${CURL} -XPUT ${ELASTICSEARCH}/${KIBANA_INDEX}/dashboard/${NAME} \
+    echo "Loading visualization ${NAME}:"
+    ${CURL} -XPUT ${ELASTICSEARCH}/${KIBANA_INDEX}/visualization/${NAME} \
         -d @${file} || exit 1
     echo
 done