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
已提问 2 年前341 查看次数
1 回答
1
已接受的回答

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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则