Automating ES template management using Logstash output

Hello there.
I'm a little bit confused in finding a way to manage ES templates.
Now I edit them manually via Cerebro. But I'd like to store it in some storage like git and push them automatically.
I know that Logstash output has ability to push templates, but have a few questions regarding this feature.

  1. I have several template with different order. Can I push them in one output block, or I should create several output blocks one per template?
  2. I also have may outputs in my logstash config with different index names. Should I pass templates with every output?
  3. Let's assume that I made some change in templates. I want new indices to be created with new mappings. How can I make sure that templates will be loaded into ES before data will actually flow?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.