最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

latest value in ESQL Elasticsearch piped query language on kibana - Stack Overflow

programmeradmin2浏览0评论

We are running below ES|QL query on Kibana to make a table of list of alerts triggered from a external Monitoring tool.

FROM winlogbeat-* | WHERE event.code == "3003" | stats Alert_Time = VALUES(@timestamp), Severity = VALUES(Severity), Name = VALUES(AlertName), ActiveID = VALUES(AlertActiveID), Status = VALUES(AlertStatus),Device_Name = VALUES(Device_Name) by @timestamp 

When the new Alert generates, we get an event with “Status” field with value “ACTIVE” When the Alert resolves we get an event with “Status” field with value as “CLOSED”

But now We want to create a table which shows only the alerts which are still ACTIVE and not resolved. Here only the key value which we can use to correlate the Alert Status is “AlertActiveID” field which is a unique number assigned a new alert when its generates and also same number will be assigned to new event when the same alert resolves.

As per my understanding we need to use something like LATEST(AlertActiveID) in the query but its not working.

Can some one help us with this so that we can get to see the table of alerts which has list on only ACTIVE alerts (not resolved).

发布评论

评论列表(0)

  1. 暂无评论