AWS Cloudwatch Lambda Log Filter

I have a Lambda function and its logs in Cloudwatch (Log group and Log Stream). Is it possible to filter (in the Cloudwatch Management Console) all logs containing an "error"? For example, logs containing "Process completed before request is completed."

+5
source share
3 answers

In journal groups there is a button " Event Search ". You must click on it first.

Then it "changes" to " Filter Streams ":

Now you just need to enter your filter and select the start date-time.

+1
source

, , . ( fooobar.com/questions/1620340/..., , )

, , , , AWS Lambda . , "" . - , , . , :

https://github.com/four43/aws-cloudwatch-log-clean

, , .

0

CloudWatch Insights (https://aws.amazon.com/about-aws/whats-new/2018/11/announcing-amazon-cloudwatch-logs-insights-fast-interactive-log-analytics/), AWS CloudWatch, . . . , .

You can also use the tool that I created, called SenseLogs. It downloads CloudWatch data to your browser, where you can fulfill the requests you are asking about. You can either use the full text and look for "error", or if your log data is structured (JSON), you can use an expression language like Javascript to filter by field, for example:

error == 'critical'
0
source

Source: https://habr.com/ru/post/1620338/


All Articles