Kibana 4.3 具有用于导入/导出仪表板、搜索和可视化的强大功能。但是,相关的索引模式不包含在生成的 export.json 文件中。将 export.json 文件导入另一个 kibana 索引时,Kibana 报错 Could not locate that index-pattern-field (id: <index-pattern name>)
.
如何将 kibana 的索引模式从一个 Elasticsearch 实例迁移到另一个实例?
谢谢,
内森
最佳答案
来自official documentation (强调)
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.
由于索引模式与其他任何内容一样保存在 .kibana
索引中,您可以做的是使用临时工具保存它们,而不是手动重新创建它们,例如 (例如)elasticdump ,像这样:
elasticdump \
--input=http://host1:9200/.kibana \
--input-index=.kibana/index-pattern \
--output=http://host2:9200/.kibana \
--output-index=.kibana/index-pattern \
--type=data
你也可以使用 snapshot/restore在你的 .kibana
索引上
关于elasticsearch - 你如何在 Kibana 中导出/导入 "index-pattern"类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37423439/