Kibana中的Elasticsearch查询

发布于 2025-02-07 18:24:45 字数 122 浏览 0 评论 0原文

我想记录所有对Elasticsearch的疑问及其在Kibana中的响应机构。 有办法做到吗? 我知道一种设定的方法。慢速插入阈值达到0并记录我慢速的所有查询,然后使用filebeat将这些查询推向基巴纳。 还有其他方法可以做到吗

I want to log all the queries made to Elasticsearch along with their response bodies in kibana.
Is there a way to do that?
I came to know a way to set. t he slowlogs threshold to 0 and log all the queries i slowlogs and then use filebeat to push those queries to kibana.
Is there any other way to do that

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

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

发布评论

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

评论(1

时间你老了 2025-02-14 18:24:45

据我所知,这在基本和免费版本中至少可用,即使您将搜索slowlog阈值设置为0ms它只会记录搜索查询和其他搜索查询的元数据,但不会记录搜索查询响应

最好在生成搜索查询并解析响应的应用程序中执行此操作,然后使用FileBeat您可以将应用程序日志发送到Elasticsearch。

As far as I know, this is not available atleast in basic and free version and even if you set search slowlog threshold to 0ms it will just log the search query and other metadata of search query but wouldn't log the search query response.

It would be better to do this in your application which generated the search query and parse the response, then using filebeat you can send the application logs to Elasticsearch.

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