如何在Kibana中创建HTTP代码堆叠图? [英] How do I create a stacked graph of HTTP codes in Kibana?

查看:177
本文介绍了如何在Kibana中创建HTTP代码堆叠图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将HTTP日志发送到Kibana,响应代码(200,401,500等)作为一个字段正确解析出来。我想要一个时间序列图表,每个代码显示的每个代码的计数在每个间隔中以不同的颜色叠加在一起。这应该有助于看看是否突然有500个错误,例如。

I'm sending HTTP logs into Kibana, and the response code (200, 401, 500, etc) are correctly parsed out of them as a field. I'd like a time-series chart with the count of each code shown as bars stacked on top of each other in each interval, in different colors. This should help see if there are suddenly more 500 errors, for example.

我很难想出如何在基巴纳创建这样的图表。这是可能吗?

I'm having a hard time figuring out how to create such a chart in Kibana. Is this possible?

推荐答案

这是一个Kibana 3答案,检查这个答案如果你使用的是Kibana 4或5

This is a Kibana 3 answer, check this answer if you are using Kibana 4 or 5

如果我不误解您的问题,您需要的是:

If I do not misunderstand your question what you need is:


  • 定义您的查询。如果您想要每个响应类型的栏,您需要每个响应定义一个查询。您必须定义一个查询字段:< value> 以过滤确切的值。例如,您可以查询:

  • Define your queries. If you want a bar per response type you need to define one query per response. You have to define a query field: <value> for filtering the exact value. For instance, you can have queries like:


  • 创建直方图。

  • 使用以下命令配置直方图:


    • 查询:您可以选择所有查询,或者只选择几个你首先写的那些。


    • 面板:您可以放置​​一个配置喜欢这个。您可以设置一个自定义的时间间隔来分组日志,将值叠加成个体(更有意义的是,当您将鼠标悬停在图上时,将显示正确的值,而不是堆叠的)。您可以尝试一些选项。

    最终结果将如下:

    这篇关于如何在Kibana中创建HTTP代码堆叠图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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