Closed seang-es closed 8 years ago
The issue is that template mappings (and perhaps templates altogether) aren't checked. This bit me with a different invalid template mapping.
Yes, not much we can do about index templates. Closing
Just to add a solution for anyone coming to this issue:
logtash
mapping and remove the path: full
"parameter"logstash
template in ES so the path: full
of geoip
is absent.$ curl http://localhost:9200/_template/logstash?pretty=true > logstash.template.json
# edit logstash.template.json so you get a template as defined by this documentation : https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
# now update the template
$ cat logstash.template.json |curl -XPUT http://localhost:9200/_template/logstash -d '@-'
{"acknowledged":true}
I've not done the logstash part because I don't need to do it.
Now you can upgrade your indices :)
Older Logstash templates include a "path":"full" directive in the mapping under their "geoip" definition. This is no longer supported by Elasticsearch, and if the existing Logstash template includes "path":"full", LS will silently fail to create its daily index and nothing will be ingested after upgrade. The migration tool should flag this for correction so the user can update Logstash and correct the existing template.