Scenario:
- Several filebeat agents dispatching information to Elastic
- Index Pattern created for filebeat-*
On a cluster migration, I just wanted to export my visualizations to the new cluster. Exported the visualizations and imported into the new cluster. Because the export included related files, index pattern (from the configs) was also copied.
When I visited the first visualization, it complained about the index pattern not existing. After analyses I found that the Saved Search that is feeding the visualizations was configured to:
...
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[1].meta.index",
"id": "filebeat-*",
"type": "index-pattern"
...
Several discussions on discuss.elastic.co mention that, the reason the visualizations and saved searches were failing was because the index pattern was created with the wrong ID. I deleted the index pattern that came with the export and created one, using the advanced options to manually set the ID to "337394b0-c419-11e9-9c68-2daf796aac2a". Even after the creation, visualizations were still failing.
What fixed my problem was going to the saved searches and visualizations that were dependent on the "filebeat-*" and HARDCODED the ID, as in:
{
"name": "kibanaSavedObjectMeta.searchSourceJSON.filter[1].meta.index",
"id": "337394b0-c419-11e9-9c68-2daf796aac2a",
"type": "index-pattern"
}
It's important to mention that this migration was from an early 7.0 version to 7.5, however, I don't believe setting the ID hardcoded is the best way to go, so there has to be a better way of fixing this.
Any tips/help?
Thank you.