How to create a Metric Filter for Log Stream in AWS

Viewed 289

This is my log insight query:

fields @timestamp, @message

| filter @message like 'share\BIExtracts\wep\'

| sort @timestamp desc

| limit 1

I would like create a subscription filter for Lambda using a filter pattern to do same as above, getting the most recent data from this file audit logs:

enter image description here

1 Answers

Cloudwatch logs can be used to capture the logs and trigger the Lambda function.

Related