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?

1 Resposta
1
Resposta aceita

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 há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas