We have been planning to upgrade from 1.7.1 to 2.3 but we do not seem to pass the Migration Checker
I am having two issues marked as Red and I do not know how to address them yet.
Please help.
Some of the indices are flagged using Reserved field names:
issue 1:
Reserved field names
The _uid, _id, _type, _source, _all, _parent, _field_names, _routing, _index, _size, _timestamp, and _ttl field names are reserved and can no longer be used in the document _source., in type: logs.
issue 2:
Conflicting field mappings
Mapping for field dashboard:hits conflicts with: search:hits. Check parameter: type
Please help
issue1: the mentioned field names appear somewhere in your documents, but are not legal in 2.x any more, so you need to rename those fields. You need to reindex your data, also because of the following issue.
issue2: this means you two different mappings for the field "hits" in type dashboard and in type "search". This is no longer possible with ES 2.x. This blog article explains why. Unfortunately the only solution is to reindex your data into a new index with corrected mappings
Hi Chris
I am new to ELK, I just found out that we do not use these reserved field names ( uid, _id, _type, _source, _all, _parent, _fieldnames, _routing, _index, _size, _timestamp), what is the best way to remove them?
I can't really tell what you did, but when you did the transformation you'll need to make a new index and delete the old one. Once you add a field to an index it can never be removed from the mapping.
This is what I did to re-index using logstash but it does not work
input {
elasticsearch {
hosts => [ "elasticsearch.prod.xxx:9200" ]
index => "index-2016.05.22"
size => 500
scroll => "5m"
docinfo => true
}
}
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.