Problem with index-pattern id when recreating index

After recreating index stats-* all the saved objects (visualizations, dashboards,...) are failing to load with error:
Could not locate that index-pattern (id: 70ea4880-815b-11e9-a33a-156632c3253a), click here to re-create it

When I check with query:
POST .kibana/_search
{
"query": {
"term": {
"type": {
"value": "index-pattern"
}
}
}
}

{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 2.9123507,
"hits" : [
{
"_index" : ".kibana_1",
"_type" : "doc",
"_id" : "index-pattern:853edd20-a8b4-11e9-85c3-6d5ebd116eca",
"_score" : 2.9123507,
...

looks like index-pattern has changed
70ea4880-815b-11e9-a33a-156632c3253a
for
853edd20-a8b4-11e9-85c3-6d5ebd116eca

...but why? how can I fix it?

If I go to Saved Objects and change the pattern-id manually the visualization gets fixed, should I go manually to each saved object and change the pattern-id??

Thank you for your help,

Juanjo.

When creating an index pattern there is an option under the "Advanced" tab that allows you to specify the ID. There you could specify the ID that it had before: 70ea4880-815b-11e9-a33a-156632c3253a

Thank you Marius.

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