通过直接查询elasticsearch实例重新创建kibana小部件

发布于 2025-01-11 22:57:00 字数 132 浏览 7 评论 0原文

我正在运行 ELK 堆栈的应用程序,我在其中使用 Kibana 生成可视化。

来生成类似于 kibana 小部件的可视化效果吗?

但是,我可以通过直接查询我的弹性搜索实例并将传入数据提供给弹性图表

I have running application of ELK stack, where I am generating the visualizations using Kibana.

but, can I generate the visualizations similar to kibana widgets by directly querying my elastic

search instance and feeding the incoming data to elastic charts

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七度光 2025-01-18 22:57:00

是的,您可以实现它,因为 Kibana 可视化基于 生成Elastic DSL聚合

您可以通过以下步骤查看具体可视化的查询:

  1. 进入Kibana ->可视化
  2. 打开创建的特定可视化。
  3. 单击右上角的“检查”。
  4. 选择请求选项卡。在这里,您将能够看到 Kibana 生成的用于创建图表的查询。
  5. 您可以复制请求并使用 Elasticsearch 实例执行,并使用响应来显示图形。

输入图片此处描述

Yes, You can achieve it because Kibana Visualization generates based on Elastic DSL and aggregation.

You can view the query of specific visulization by following below steps:

  1. Go to Kibana -> Visualize
  2. Open the specific visulization which is created.
  3. Click on Inspect on top right corner.
  4. Select Request tab. Here, you will be able to see query generated by Kibana for creating chart.
  5. You can copy request and execute using Elasticsearch instance and use response for showing Graph.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文