日志文件的平均响应时间

发布于 2025-01-30 07:31:35 字数 571 浏览 3 评论 0原文

我是Elastic和Kibana的新手,我正在研究包含有关某些操作不同级别操作的信息的日志文件,我有一个场时间戳记,代表每个操作在每个级别上发生的时间。

我想计算每个级别上花费的平均时间以在Kibana上可视化,问题是我在文档中没有找到某些内容,或者我没有选择正确的关键字。

作为提醒,我想计算操作的每个步骤的时间平均处理时间,以便我可以在Kibana上可视化。

这是我日志的一个景象。

{“ log_level”:“ info”,“ timestamp”:“ 2021-12-22T11:49:06.124890Z”,“ event_type”:“ step1”:“ step1”,“ mid”:“ 96712abc”} {“ log_level”:“ log_level”:“ info” ,“时间戳”:“ 2021-12-22T11:49:07.7066999Z”,“ event_type”:“ step2”,“ mid”:“ 96712ABC”} {“ log_level”:“ info”,“ timestamp”:“ 2021-12-22T11:49:08.124890Z”,“ event_type”:“ step3”,“中间”:“ 96712ABC”}

I'm new to Elastic and Kibana, I'm working on log files that contains information about some operations on differents levels, I have a field timestamp that represent time when each operation has occured on each level.

I want to calculate the average time spent on each level to visualize it on Kibana, the problem is I did not find something in the documentation or I didn't chose the correct keyword.

As a reminder I want to calculate the time Average processing time for each step of the operation so I can visualize it on Kibana.

This is an exemple of my logs.

{“log_level”:“INFO”,“timestamp”:“2021-12-22T11:49:06.124890Z”,“event_type”:“step1”,“mid”:“96712abc”}{“log_level”:“INFO”,“timestamp”:“2021-12-22T11:49:07.706699Z”,“event_type”:“step2”,“mid”:“96712abc”}
{“log_level”:“INFO”,“timestamp”:“2021-12-22T11:49:08.124890Z”,“event_type”:“step3”,“mid”:“96712abc”}

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文