elasticsearch - 你如何在 Kibana 中导出/导入 "index-pattern"类型

标签 elasticsearch kibana kibana-4

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/

相关文章:

elasticsearch - 尝试从Elasticsearch提取叶字段

elasticsearch - 在将输入转换为json后如何去除多余的字段和值?

elasticsearch - 调整SeriLog中的ElasticsearchSinkOptions.NumberOfShards在.Net核心中不起作用

elasticsearch - 在K8s上运行ElasticSearch和Kibana错误-Kibana无法正确加载。检查服务器输出以获取更多信息

elasticsearch - Kibana 6.4 Runnin 作为守护进程

elasticsearch - 如何在elasticsearch中用冒号搜索模式?

python - 在 pyes 查询中使用 'fields',在 0.19.1 上失败

tomcat - 如何使用 LogStash 在 tomcat 日志文件上创建索引

elasticsearch - 日期直方图中的 Kibana 4 时间窗口

elasticsearch - 无法获取映射