Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda