How to get the counts of log messages based on the error type in Elasticsearch visualization

前提是你 提交于 2019-12-13 04:35:22

问题


I have some sample data on the Elasticsearch, which looks like the following:

I am using the data table in the Visualize section to get the counts for each error type, for example: it should output

Error: Update failed for online booking with id, count is 5.

Not the count 1 for different id of the same error type.

What I have done is to build a query to output the counts for each error type, which looks like this:

However, when I save the query as the saved search, then visualize it as data table, it still have the same issue as above.

I was thinking to only save the output of that query as saved search, one issue is that the output is too verbose, has a lot of information I don't really need.

Any suggestions please !

来源:https://stackoverflow.com/questions/55013552/how-to-get-the-counts-of-log-messages-based-on-the-error-type-in-elasticsearch-v

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!