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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南