How do I create a stacked graph of HTTP codes in Kibana?

前端 未结 2 1350
旧时难觅i
旧时难觅i 2021-01-31 16:29

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

2条回答
  •  有刺的猬
    2021-01-31 17:21

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

    Kibana 3

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

    • 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: for filtering the exact value. For instance, you can have queries like:

    Defining the queries

    • Create an Histogram.
    • Configure the Histogram with:
      • Queries: You can select all the queries, or select only a few that the ones that you wrote in the first place.

    Queries

    • Panel: You can put a configuration like this. You can set a custom interval to group your logs, you stack the values as individual (makes more sense I think, when you put the mouse over the graph will show the correct value and not the stacked one...). You can experiment a bit with the options.

    Panels

    The final result will be something like:

    Final result

提交回复
热议问题