Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide better logging on which index template is used during index creation #7421
There are 2 ways to create an index template, using the _template end point (dynamic) and as static templates (under config/templates). Currently, when an index is created matching a template (static or dynamic), we log the following entry in the ES log:
There is no indication on which template it used to create the index.
We have seen situations in the field where the end user is confused because they have both dynamic and static templates defined (and dynamic templates take precedence), or if they have multiple templates with the same template matching criteria defined as static templates (so that 1 static template is overwriting the other).
It would be nice to provide some indication in the log regarding the template used when we write out the creating index entry to specify:
Thanks for picking this up. In answer to your question, I'd say that we log the template names in the order that they're applied. Or perhaps I've misunderstood?