I am currently going through the Elasticsearch deprecation logs to check what we may need to resolve prior to upgrading our ELK Stack from v6.0.0 where I have found the following but have no clue how to resolve.
[o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns] Deprecated field [inline] used, expected [source] instead [_default_] mapping is deprecated since it is not useful anymore now that indexes cannot have more than one type Fielddata access on the _uid field is deprecated, use _id instead
Looking at the fields _id is currently being used.
Index_patterns is displayed when doing GET _template
Inline is also not being used
We have not set a custom template in logstash it uses its default.
Interestingly I have spun up another ELK node with the same version (v6.0.0) where I got the same errors as my original comment. I proceeded with the upgrade to v6.7.1 on the test ELK node to see if any errors cleared and I am only seeing [2019-04-24T08:53:16,101][WARN ][o.e.d.i.m.MapperService ] [HOSTNAME] [_default_] mapping is deprecated since it is not useful anymore now that indexes cannot have more than one type
> [2019-04-24T08:01:32,614][WARN ][o.e.d.r.a.a.i.RestGetMappingAction] [HOSTNAME] [types removal] The parameter include_type_name should be explicitly specified in get mapping requests to prepare for 7.0. In 7.0 include_type_name will default to 'false', which means responses will omit the type name in mapping definitions.
The question is now 'How do I resolve the include_type_name error and the default mapping error?
I'm pretty sure that the warning about the [_default_] mapping indicates that there's an index or an index template that's still using it. It might be a template installed by Logstash, of course. If so, I'm not sure how best to go about removing it but you could try asking in the Logstash forum about that.
As I said above, to avoid that warning any get mapping request needs include_type_name=falseas per the docs.
Just upgraded my cluster to 6.7.1 and found exactly which template was putting error. I wasn't using that index anymore so it was easy for me and remove it
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.