Unable to connect to Elasticsearch from Kibana

Hello,

I am getting below error in kibana 6.5.4

"message":"Rejecting mapping update to [.kibana_1] as the final mapping would have more than 1 type: [doc, type]: [illegal_argument_exception] Rejecting mapping update to [.kibana_1] as the final mapping would have more than 1 type: [doc, type]"}

Both Kibana and ES are in same version.
Help please.

Thanks,
Surya

Hi, which version did you upgrade from? Did you refer to the upgrade guide beforehand? https://www.elastic.co/guide/en/elastic-stack/6.5/upgrading-elastic-stack.html

This is a case of internal indices not having gone through migration, so double-check the steps about using the Reindex helper and the migration/upgrade API.

Follow up question in case there wasn't an upgrade or the upgrade went ok:

Does Elasticsearch have an index template that adds type or doc as a type to every index?

We did not upgrade. its a strainght ES and kibana 6.5.4 installation

name index_patterns order version
.management-beats [.management-beats] 0 65000
.ml-anomalies- [.ml-anomalies-] 0 6050499
.ml-meta [.ml-meta] 0 6050499
.ml-notifications [.ml-notifications] 0 6050499
.ml-state [.ml-state] 0 6050499
.monitoring-alerts [.monitoring-alerts-6] 0 6050399
.monitoring-beats [.monitoring-beats-6-
] 0 6050399
.monitoring-es [.monitoring-es-6-] 0 6050399
.monitoring-logstash [.monitoring-logstash-6-
] 0 6050399
.triggered_watches [.triggered_watches*] 2147483647
.watch-history-9 [.watcher-history-9*] 2147483647
.watches [.watches*] 2147483647
default_template [] 0
logstash-index-template [.logstash] 0
security-index-template [.security-
] 1000
security_audit_log [.security_audit_log*] 1000

These are the index templates we have. All these are 6.x template’s i believe none of them should have type since they are deprecated from 6.x

All the indices are created on 6.5.4 and no templates are used @tsullivan

Hm, try using the migration assistant here. Your data came from somewhere else, maybe an import from another version. When you import saved objects, you can not just save the JSON directly to Elasticsearch. See Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]" error

i figured out

kibana is using default index template to create mapping
i deleted that index template and restarted Kibana and it worked fine

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.