Unable to create elastic index through logstash output plugin with es index template in elastic DB

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?:weary:
RELATED POST in stack overflow

First is it possible to create elastic index through logstash elastic search output plugin?

Yes.

What does your elasticsearch output plugin configuration look like? What's the name of the index you're creating? What does the index template look like?

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