I have a number of index patterns which I've imported from a different space. When I try to search for an index pattern which clearly exists in the Index Patterns menu - Kibana doesn't seem to be able to find some of the indexes. Here's a screenshot before performing the search:
The problem also seems to manifest itself when I try to create a metric visualisation using Visual Builder by not finding any documents in the index pattern specified even though selecting the exact same index pattern using the normal metric visualisation yields results:
You can try and compare the index pattern than works to one that doesn't inside the .kibana index and see if there's something weird when comparing them.
GET "localhost:9200/api/saved_objects/_find?type=index-pattern&fields=title&per_page=10000"
the list of index patterns that are returned contain all the index patterns even the ones that don't work.
When I try to delete some of them though, or create new ones, the changes I make through the API don't reflect the index-patterns I'm seeing in Kibana, even after restarting Kibana and refreshing the page.
I've realised that the API changes I make only reflect on the Default space when looking in Kibana.
If I delete an index pattern and re-create it with a different ID then I'm able to search for it in the Index Patterns search field within Kibana but I lose all of my visualisations linked to the pattern.
I've then tried deleting the newly created index-pattern and re-creating it with the old ID but then it no longer becomes searchable again.
Is there a way to control the index-patterns for specific spaces using the API?
Worked out how to use the API to target different Spaces from this post:
Looks like my issue will be fixed by recreating the index patterns in each space with new IDs and relinking the visualisations to the new index-pattern.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.