send filtered log message of Metric Filter to Lambda function

0

Hi All,

I want to know weather I can send filtered log message of Metric Filter to Lambda function, just like subscription filter. But there is a limit of 2 subscription filters per log group so I cannot use it. Suggest me if any possible ways with metric filter.

1回答
0
承認された回答

You cannot send logs to Lambda using a metrics filter.
Metrics filtering is a function that filters logs and counts necessary information as metric values.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

You can search and filter the log data coming into CloudWatch Logs by creating one or more metric filters. Metric filters define the terms and patterns to look for in log data as it is sent to CloudWatch Logs. CloudWatch Logs uses these metric filters to turn log data into numerical CloudWatch metrics that you can graph or set an alarm on.

Use the subscription filter.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#LambdaFunctionExample

profile picture
エキスパート
回答済み 10ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ