-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sleep in vagrant script to wait for elasticsearch service
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,12 @@ mv /home/vagrant/tsharkVM/tshark_logstash.conf /etc/logstash/conf.d/ | |
chown logstash:logstash /etc/logstash/conf.d/tshark_logstash.conf | ||
systemctl start logstash.service | ||
|
||
echo "Wait for Elasticsearch to start ... (waiting 30 seconds)" | ||
sleep 30 | ||
cd /home/vagrant/tsharkVM/Kibana | ||
curl -X PUT "localhost:9200/_template/packets?include_type_name" -H 'Content-Type: application/json' -d@template_tshark_mapping_deduplicated.json | ||
|
||
echo "Wait for Kibana to start ... (waiting 60 seconds)" | ||
sleep 60 | ||
curl -X POST "localhost:5601/api/saved_objects/_import?overwrite=true" -H "kbn-xsrf: true" --form [email protected] | ||
cd /home/vagrant | ||
cd /home/vagrant |