如何在Elasticsearch中监视查询? [英] How to monitor queries in Elasticsearch?

查看:79
本文介绍了如何在Elasticsearch中监视查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用弹性APM 来监视我们的API.它显示查询状态和有关查询的有用信息.我想要有关发送到Elasticsearch服务器的查询的相同信息.

We are using Elastic APM for monitoring our APIs. It shows queries status and useful information about the queries. I want to have the same information about the queries which are sent to Elasticsearch server.

我想获取有关查询,时间,状态代码等的信息.Elasticstack中是否有任何可用于此目的的插件?

I want to have information about queries, time, status code, etc. Is there any plugin in Elastic stack that I can use for this purpose?

推荐答案

有关高级概述信息,请查看

For a high-level overview type of information, have a look at Elastic Stack Monitoring.

如果您想更详细地查看任何监视,请查看

If you want to look at any monitoring in more detail, have a look at the monitoring APIs themselves.

如果要记录此类信息,则应设置阈值获取您的Elasticsearch慢日志.

If you want to log this sort of information, you should set thresholds for your Elasticsearch slow log.

如果要建立索引,然后从慢速日志中查看数据,请您始终可以使用Filebeat将缓慢的日志数据吸收回Elasticsearch .

If you want to index and then view data from the slow log, you can always use Filebeat to ingest that slow log data back into Elasticsearch.

这篇关于如何在Elasticsearch中监视查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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