gpt4 book ai didi

kibana - 如何获取 Kibana 仪表板 ID?

转载 作者:行者123 更新时间:2023-12-01 15:13:56 80 4
gpt4 key购买 nike

如何获取 kibana 仪表板 ID?用于 API 调用以从仪表板导出数据。

我到处搜索,但找不到示例中的仪表板 ID(仪表板 ID 为 942dcef0-b2cd-11e8-ad8e-85441f0c2e5c 。)。

我正在使用 ELK 堆栈 7.4.1 OSS (社区版)。

最佳答案

您可以使用以下内容从 Elasticsearch 中的命令行查询 .kibana 索引;

$ curl -s http://localhost:9200/.kibana/dashboard/_search?pretty
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [ {
"_index" : ".kibana",
"_type" : "dashboard",
"_id" : "New-Dashboard",
"_score" : 1.0,
"_source" : {
"title" : "New Dashboard",
"hits" : 0,
"description" : "",
"panelsJSON" : "[{\"id\":\"Visualization-VerticalBarChart\",\"type\":\"visualization\",\"panelIndex\":1,\"size_x\":3,\"size_y\":2,\"col\":1,\"row\":1}]",
"optionsJSON" : "{\"darkTheme\":false}",
"uiStateJSON" : "{}",
"version" : 1,
"timeRestore" : false,
"kibanaSavedObjectMeta" : {
"searchSourceJSON" : "{\"filter\":[{\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}}}]}"
}
}
} ]
}
}

或者,如果您想要单独的,您可以包含标题或 ID;
curl -s 'http://localhost:9200/.kibana/dashboard/_search?pretty=1,q=_id=New-Dashboard'

您可以引用 https://www.elastic.co/guide/en/kibana/current/index.html更多引用

关于kibana - 如何获取 Kibana 仪表板 ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59317064/

80 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com