[6.1] Submitting index-pattern and visualizations to ".kibana" index

I'm upgrading from ES and Kibana 2.3 to 6.1, and can't seem to submit index-pattern, visualizations, dashboard etc to the ".kibana" index.

This is how i was submitting them in ES 2.3

curl -vvv -H "Content-Type: application/json" -XPUT -d@/kibana-objects/index-pattern/logs-\*.json "elasticsearch:9200/.kibana/index-pattern/logs-*?pretty

Same for visualizations and dashboard.

Now in 6.1, when I try to do this I get this response:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [index-pattern, doc]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [index-pattern, doc]"
  },
  "status" : 400
}

How can i submit default index pattern for kibana in 6.1 ?

Hi Hazim,

We have removed types from 6.0. You need to upgrade to 5.6 first - migrate your .kibana index and then upgrade to 6.1.

Here are our doc links:

Upgrading elasticsearch
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html

Upgrading kibana
https://www.elastic.co/guide/en/kibana/current/upgrade.html

Here is a blogpost for explaining Kibana's upgrade to 6.0:

Here is a webinar:
https://www.elastic.co/webinars/upgrading-your-elastic-stack

Hope this helps.

Thanks,
Bhavya

1 Like

Hi,
Im doing a clean setup just wanted to use my old files i.e. index patterns visualizations etc. or wanted to convert them to 6.1 format.

Would i still need to upgrade to 5.6 first?

Yep :slight_smile: 5.6 is mandatory to upgrade to 6.x.

Cheers,
Bhavya

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