Added saved search and index pattern for soledad dashboard
[scripts.git] / elastic / load.sh
index 0a82cef..e7d1990 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
 #
 # from https://raw.githubusercontent.com/elastic/beats-dashboards/master/load.sh
 
@@ -11,7 +11,7 @@
 
 # The default value of the variable. Initialize your own variables here
 ELASTICSEARCH=http://localhost:9200
-CURL=curl
+CURL='curl --netrc'
 KIBANA_INDEX=".kibana"
 BEAT_CONFIG=".beatconfig"
 
@@ -97,7 +97,7 @@ if [ -z ${SED_STRING} ]; then
   SED_STRING="s/packetbeat-/packetbeat-/g;s/filebeat-/filebeat-/g;s/topbeat-/topbeat-/g;s/winlogonbeat-/winlogonbeat-/g"
 fi
 
-DIR=dashboards
+DIR=.
 echo "Loading dashboards to ${ELASTICSEARCH} in ${KIBANA_INDEX}"
 
 # Workaround for: https://github.com/elastic/beats-dashboards/issues/94