CloudWatch指标筛选器无法正确解析日志

时间:2020-05-03 07:44:24

标签: amazon-cloudwatch amazon-cloudwatch-metrics

我想使用指标筛选器来识别404、500等错误。当我的Lambda返回错误时,日志组显示以下内容

....
Failed to create contact. Got Exception:  
com.amazonaws.services.lcms.model.ContactFlowIdNotFoundException: 
null (Service: lcms; Status Code: 404; Error Code: 
ContactFlowIdNotFoundException; Request ID: 6c82d3c5-3bca-xxxx-b489-xxxxx) at 
com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(Am
....

当状态代码在400秒内时,我将如何应用度量过滤器来显示?

0 个答案:

没有答案