通过 setup.yml 将保存的对象导入 Kibana
Importing Saved Object to Kibana via setup.yml
我有一个 JSON 格式的文件,Kibana 将其导出为已保存的对象,它保存了一个索引模式以及我想在 Kibana 和 Elasticsearch 的新图像上安装的一些可视化和仪表板。
阅读一些 Elastic for Docker documentation 我发现可以通过 setup.yml 文件安装仪表板和索引模式。问题是我不知道怎么做。我听说过 elasticdump,但它不适合我,因为我同时需要两个 Elasticsearch 实例 运行。
基本上是 运行 shell 脚本通过一个短暂的容器。 Beats 仪表板可以直接通过该二进制文件导入,请参阅 https://github.com/elastic/stack-docker/blob/master/scripts/setup-beat.sh#L25-L28。
如果您有自定义仪表板,请使用 curl 将其导出并导入;可能在 https://github.com/elastic/stack-docker/blob/master/scripts/setup-kibana.sh if you are using that Docker repository. You can find the API at https://www.elastic.co/guide/en/kibana/7.1/dashboard-import-api-import.html.
我有一个 JSON 格式的文件,Kibana 将其导出为已保存的对象,它保存了一个索引模式以及我想在 Kibana 和 Elasticsearch 的新图像上安装的一些可视化和仪表板。
阅读一些 Elastic for Docker documentation 我发现可以通过 setup.yml 文件安装仪表板和索引模式。问题是我不知道怎么做。我听说过 elasticdump,但它不适合我,因为我同时需要两个 Elasticsearch 实例 运行。
基本上是 运行 shell 脚本通过一个短暂的容器。 Beats 仪表板可以直接通过该二进制文件导入,请参阅 https://github.com/elastic/stack-docker/blob/master/scripts/setup-beat.sh#L25-L28。
如果您有自定义仪表板,请使用 curl 将其导出并导入;可能在 https://github.com/elastic/stack-docker/blob/master/scripts/setup-kibana.sh if you are using that Docker repository. You can find the API at https://www.elastic.co/guide/en/kibana/7.1/dashboard-import-api-import.html.