Scenario 1:
The elastic index creation template is PUT into elastic DB first.
The elastic index creation is attempted next with the mapping json as payload using PUT request.
The elastic index is created successfully using elastic index template and the content of the index created is verified successfully.
Scenario 2:
attempting to create elastic index in elastic DB (ver 6.2.3) using logstash output plugin ( ver 6.2.1).
While attempting so, the "elastic index creation template" is being picked up as expected but the created index there upon has wrong content. This was verified using subsequent get request.
Scenario 1 creates elastic index with the right expected content(approximately 300 lines).
But scenario 2 creates elastic index content which is 900 lines long and it is not desired.
First is it possible to create elastic index through logstash elastic search output plugin?
If so, what am i missing overall?
RELATED POST in stack overflow