Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
How can I filter CloudWatch logstreams to the logstreams of failed invocations?

I have a Lambda function that has a success rate of over 99% (which is nice).

Occasionally there is an invocation which results in an error. I would like to view the log of that one invocation.

How can I find the cloudwatch logstream which contains the error invoke?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

To do this you need to apply filter patterns across the entire log group, which will query all logstreams.

If you're looking for a specific error phrase you can wrap it in double quotes such as "ERROR".

From the console

  • Go to the CloudWatch service screen
  • Click Log groups
  • Click on your log group
  • Click "Search All"
  • Enter your pattern in the "Filter events" text box

From the CLI

Use the filter-log-events function. An example is below

aws logs filter-log-events --start-time 1593967410000 --end-time 15945722100000 --log-group-name /aws/lambda/function-name --filter-pattern ERROR --output text

For examples of how to use more complex filter patterns take a look at the Filter and Pattern Syntax page.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!