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

질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠