如何导出/导入“索引模式”类型在基巴纳 [英] How do you export/import "index-pattern" types in Kibana

查看:633
本文介绍了如何导出/导入“索引模式”类型在基巴纳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kibana 4.3具有导入/导出仪表板,搜索和可视化功能的极好功能。但是,相关索引模式不包含在生成的export.json文件中。将import.json文件导入另一个kibana索引时,Kibana报告错误找不到该索引模式字段(id:< index-pattern name>)。 / p>

如何将kibana的索引模式从一个Elasticsearch实例迁移到另一个?



谢谢,



Nathan

解决方案

官方文件(重点增加)


导出的仪表板不包括其关联的索引模式。在将保存的仪表板导入到另一个Elasticsearch集群上运行的Kibana实例之前,手动重新创建索引模式


由于索引模式保存在 .kibana 索引中以及其他任何操作,您可以做什么而不必手动重新创建它们,就是使用adhoc工具来保存它们,例如(例如) elasticdump ,如下所示:

  elasticdump \ 
--input = http:// host1:9200 / .kibana \
--input-index = .kibana / index-pattern \
--output = http:// host2:9200 / .kibana \
--output-index = .kibana / index-pattern \
- type = data

您还可以使用 .kibana index

快照/还原 >

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

解决方案

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

这篇关于如何导出/导入“索引模式”类型在基巴纳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆