Add a template using:
curl -H'Content-Type: application/json' -XPUT http://localhost:9200/_template/bro-conn-log_template?pretty -d @bro-template.json
Add a template using:
curl -H'Content-Type: application/json' -XPUT http://localhost:9200/index?pretty -d @index_template.json