云监视中的指标筛选器模式错误

问题描述 投票:1回答:1

我正在尝试从日志组创建自定义cloudwatch指标

我正在尝试为电子邮件状态创建度量标准模式。我只需要监视电子邮件中的响应(成功/失败)

我的cloudwatch日志如下所示

 Email status : [EmailStatusResponse{farmId=3846, emailIds='xxx', response='success'}

所以,我只需要监视两种情况

response='success'
response='failure'

请在以下代码段中找到我的配置enter image description hereenter image description hereenter image description here

[有人可以帮助我解决过滤器模式中的错误请帮忙!

amazon-web-services amazon-cloudwatch amazon-cloudwatchlogs amazon-cloudwatch-metrics amazon-cloudwatch-events
1个回答
0
投票

将其包装在double quotes中。

包含除字母数字或下划线以外的字符的度量过滤器术语必须放在双引号(“”)之内。

对您来说是"response='success'"

© www.soinside.com 2019 - 2024. All rights reserved.