So I am having the same problem. Started from Kibana and Elasticsearch 7.2.0 and upgraded (via RPM) to 7.5.2. I have a basic license and get the same error:
> {"type":"log","@timestamp":"2020-02-06T21:13:58Z","tags":["info","migrations"],"pid":232731,"message":"Creating index .kibana_11."}
> {"type":"log","@timestamp":"2020-02-06T21:13:58Z","tags":["warning","migrations"],"pid":232731,"message":"Unable to connect to Elasticsearch. Error: [mapper_parsing_exception] No handler for type [flattened] declared on field [state]"}
> {"type":"log","@timestamp":"2020-02-06T21:13:58Z","tags":["fatal","root"],"pid":232731,"message":"{ Error: [mapper_parsing_exception] No handler for type [flattened] declared on field [state]\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)\n at IncomingMessage.emit (events.js:194:15)\n at endReadableNT (_stream_readable.js:1103:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)\n status: 400,\n displayName: 'BadRequest',\n message:\n '[mapper_parsing_exception] No handler for type [flattened] declared on field [state]',\n path: '/.kibana_11',\n query: {},\n body:\n { error:\n { root_cause: [Array],\n type: 'mapper_parsing_exception',\n reason:\n 'Failed to parse mapping [_doc]: No handler for type [flattened] declared on field [state]',\n caused_by: [Object] },\n status: 400 },\n statusCode: 400,\n response:\n '{\"error\":{\"root_cause\":[{\"type\":\"mapper_parsing_exception\",\"reason\":\"No handler for type [flattened] declared on field [state]\"}],\"type\":\"mapper_parsing_exception\",\"reason\":\"Failed to parse mapping [_doc]: No handler for type [flattened] declared on field [state]\",\"caused_by\":{\"type\":\"mapper_parsing_exception\",\"reason\":\"No handler for type [flattened] declared on field [state]\"}},\"status\":400}',\n toString: [Function],\n toJSON: [Function] }"}
I am running the non-OSS versions:
elasticsearch-7.5.2-1.x86_64
kibana-7.5.2-1.x86_64
Here is the Elasticsearch info:
/usr/bin/curl -H "Content-Type: application/json" -XGET "http://localhost:9200/"
{
"name" : "atgrid",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "LN5csqKxTtK0S5zydp-nSQ",
"version" : {
"number" : "7.5.2",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "8bec50e1e0ad29dad5653712cf3bb580cd1afcdf",
"build_date" : "2020-01-15T12:11:52.313576Z",
"build_snapshot" : false,
"lucene_version" : "8.3.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
Here is the license info:
/usr/bin/curl -H "Content-Type: application/json" -XGET "http://localhost:9200/_license?pretty"
{
"license" : {
"status" : "active",
"uid" : "ef0a98f5-9f5c-4d2f-aa94-7cb46ab89a28",
"type" : "basic",
"issue_date" : "2019-04-20T18:26:41.702Z",
"issue_date_in_millis" : 1555784801702,
"max_nodes" : 1000,
"issued_to" : "elasticsearch",
"issuer" : "elasticsearch",
"start_date_in_millis" : -1
}
}
Is there some relevant x-pack configuration that is needed to activate "flattened" on the elasticsearch instance? Shouldn't it just be there?