Reindexing of .Kibana made all the dashboards disappear

Hi-
I made a mistake while upgrading the Kibana ; I had followed the steps to reindex the .kibana to .kibana-6 even though am in the same version (6.x) :frowning: , and which made all my dashboards to disappear.

I have tried reindxing back to .kibana, which throws the below error message:

query:

POST /_reindex
{
  "source": {
    "index": ".kibana-6"
  },
  "dest": {
    "index": ".kibana"
  }
}

Response:

 "error": {
    "root_cause": [
      {
        "type": "action_request_validation_exception",
        "reason": "Validation Failed: 1: reindex cannot write into an index its reading from [.kibana-6];"
      }
    ],
    "type": "action_request_validation_exception",
    "reason": "Validation Failed: 1: reindex cannot write into an index its reading from [.kibana-6];"
  },
  "status": 400
}

Please help me out. Thanks !

Did you keep the old index?

@warkolm - yes, I did.

Ok, I think the .kibana "index" is really an alias. So you might be able to change it to point to the original index.

Could you please help me how do I do that?
Thanks.

https://www.elastic.co/guide/en/elasticsearch/reference/6.6/indices-aliases.html has the details, but you want to do something like;

POST /_aliases
{
    "actions" : [
        { "remove" : { "index" : ".kibana-$currentone", "alias" : ".kibana" } },
        { "add" : { "index" : ".kibana-$oldone", "alias" : ".kibana" } }
    ]
}

Just replace $currentone and $oldone in the example above to match the name of the underlying indices.

1 Like

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