Opensearch query to return number of events over rate threshold

0

For a given time window I would like to return the total number of events that occurred over a certain rate threshold in any given month, for example I have a load balancer receiving requests each request generates an event, if the threshold is 1 event per second how many events were there in any given calendar month where the rate of requests was higher than 1 per second over a 1 minute window in any minute of that month

I understand that the best way to solve this would be to create a rollup index that calculates this and provides the value every minute however this isn't helpful when trying to look retrospectively at data

已提问 1 年前265 查看次数
1 回答
0

Hi, Looks like you were trying to find out a way to do some 'alerting' system by using this query, if I understand correctly.

In Opensearch, there are several aggregation functions [1]but what you were looking for is a steady function that keeps reviewing the incoming event and pop up a message when the threshold is met.

To be more specifically, seems like you are looking for an analytics application that can query the streaming data, which is what Kinesis analytics application[2] does.

By the way, maybe you can try to use the Opensearch Dashboard[3]. Inside Dashboard there are some analytics metrics what can be used to do similar analytics.

I hope you find above information useful!

[1]https://opensearch.org/docs/latest/opensearch/aggregations/ [2]https://aws.amazon.com/kinesis/data-analytics/ [3]https://docs.aws.amazon.com/opensearch-service/latest/developerguide/dashboards.html

AWS
支持工程师
Peter-C
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则