elastic / makelogs

109 stars 44 forks source link

Incorrect detection of existing index templates #37

Closed w33ble closed 7 years ago

w33ble commented 7 years ago

When I start makelogs on a totally fresh instance of Elasticsearch, I get the message about existing index templates, asking me if they can be replaced:

? Existing logstash-* indices and/or index templates were found, can they be replaced?

Odd, since this is a new ES instance. When I select yes, ES shows an error:

[2017-07-24T11:27:16,082][DEBUG][o.e.a.a.i.t.d.TransportDeleteIndexTemplateAction] [IWB2yw7] failed to delete templates [makelogs_index_template__logstash-] org.elasticsearch.indices.IndexTemplateMissingException: index_template [makelogs_index_template__logstash-] missing

I think the detection of existing templates is broken. Observed against 5.5.0 in this case, but I've seen it happen in older versions as well.

w33ble commented 7 years ago

Late to the show, https://github.com/elastic/makelogs/pull/36 closes this.