2
2
# Here put anything that is needed to start the service.
3
3
# Note that currently this is run directly after install
4
4
# i.e. 'service apache2 start'
5
6
set -eux # -x for verbose logging to juju debug-log
14
19
# load up logstash template.
15
20
# https://github.com/logstash/logstash/wiki/Elasticsearch-Storage-Optimization
16
21
# really we should do this as part of the relationship join.
19
24
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d @${HOME}/../files/charm/logstash-template.json