I had previously been on version 2.6. I have gone though the steps of setting up new elasticsearch 6.x nodes and doing the remote reindex from my 5.x elasticsearch nodes. Cluster health shows that the index(s) are good. However when I start I see the following in my logs:
Fielddata is disabled on text fields by default. Set fielddata=true on [timestamp] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.Fielddata is disabled on text fields by default. Set fielddata=true on [timestamp] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead. (ElasticsearchException)
To create a custom field mapping but that yields this error:
{
“error” : {
“root_cause” : [
{
“type” : “mapper_parsing_exception”,
“reason” : “No handler for type [string] declared on field [http_method]”
}
],
“type” : “mapper_parsing_exception”,
“reason” : “Failed to parse mapping [message]: No handler for type [string] declared on field [http_method]”,
“caused_by” : {
“type” : “mapper_parsing_exception”,
“reason” : “No handler for type [string] declared on field [http_method]”
}
},
“status” : 400
}
nclark@nclark:~$ curl -X GET 'http://vroomfondel:9200/template/graylog-internal?pretty’
It outputs the following:
“error” : {
“root_cause” : [
{
“type” : “mapper_parsing_exception”,
“reason” : “No handler for type [string] declared on field [http_method]”
}
],
“type” : “mapper_parsing_exception”,
“reason” : “Failed to parse mapping [message]: No handler for type [string] declared on field [http_method]”,
“caused_by” : {
“type” : “mapper_parsing_exception”,
“reason” : “No handler for type [string] declared on field [http_method]”
}
},
“status” : 400
}
I do not think there is a field type of string anymore in elasticsearch 6.x. I am not sure how to update this to work. I got it all to mostly work by removing indexes I moved in from 2.x elasticsearch. Though my AWS plugin will not work and spits out the same error message about field index.