Kibana 4.3 has great features for importing/exporting dashboards, searches, and visualizations. However, the related index-patterns are not contained in the the generated export.json file. When importing an export.json file into another kibana index, Kibana reports errors Could not locate that index-pattern-field (id: <index-pattern name>)
.
How do you migrate kibana's index-patterns from one Elasticsearch instance to another?
Thanks,
Nathan
Hey @Rosho, index-patterns are not stored on the Kibana server's filesystem. Instead, they are persisted to a document in the . kibana_* indices (which the . kibana alias points at).
From the raddec index choose the fields of data you want to export by feeding the Selected Fields list. Add an Available field by clicking the Add button when the mouse is over it. Once the Selected Fields list is complete, Save it from the top menu bar. Choose a Name that will be the name of the CSV file generated.
From the official documentation (emphasis added)
Exported dashboards do not include their associated index patterns. Re-create the index patterns manually before importing saved dashboards to a Kibana instance running on another Elasticsearch cluster.
Since index patterns are saved in the .kibana
index as well like anything else, what you can do instead of having to recreate them manually, is to save them using an adhoc tool, such as (e.g.) elasticdump, like this:
elasticdump \
--input=http://host1:9200/.kibana \
--input-index=.kibana/index-pattern \
--output=http://host2:9200/.kibana \
--output-index=.kibana/index-pattern \
--type=data
You could also use snapshot/restore on your .kibana
index
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With