CloudWatch logs for our Aurora Cluster using the Management Console

0

Is there a way to filter Log Group searches to a Log Stream Name pattern? I know I can do that using the CLI, but it seems the UI only offers all log streams under a group, or a specific one. The filter seems to be only on the events themselves. Basically does the UI allow me to look at all logs for a given instance?

AWS
preguntada hace 2 años341 visualizaciones
1 Respuesta
1
Respuesta aceptada

If you are using a log Insights query, then @logStream is a discovered field. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).

This means you can use it in a filter command, something like

filter @logStream like /xraydaemon/

(https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html)

AWS
AWS-SA
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas