简体   繁体   中英

cloudwatch - group several log groups in one group

I have a log group for every one of my three lambda functions. I'm wondering if there is an easy way to group the three log groups into just one group, this way it is much easier to follow my lambdas logs.

You can create a single log group and manually assign that log group to the lambda, using whatever method of deployment you are doing (Manual, Cloud Formation, CDK, ect ect).

This quickly becomes unwieldy however, as there are a lot of housekeeping logs that happen into your log groups. You're probably better off using Cloudwatch Dashboards and Log Insights to query your logs for the information you need, or in advanced cases, OpenSearch

Unfortunately, the best way to achieve easier troubleshooting is using elastic search/OpenSearch. You can use also log insights with some predefined queries in the shorter term.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM