Change default shards in Logstash

Hi. I have read the docs about index templates
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html

But it is being done in CURL. How will I do this in Logstash? TYIA!

in the elasticsearch output plugin there is a template config where you can add the template as a file which you would have otherwise send via curl

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-template

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