AWS SDK:filterLogEvents不返回指定的过滤器模式

时间:2018-11-07 00:40:15

标签: node.js amazon-web-services aws-sdk

包装: aws-sdk:^ 2.350.0

{
    "endTime": number,
    "filterPattern": "string",
    "interleaved": boolean,
    "limit": number,
    "logGroupName": "string",
    "logStreamNames": [ "string" ],
    "nextToken": "string",
    "startTime": number
}

cloudwatchlogs.filterLogEvents(options).promise();

其中filterPattern = '\"error\"'和我尝试使用'error''?error''\".error:\"'(由FilterPattern of FilterLogEvents does not pick the string explicitly建议)。每次我取回所有日志事件。

0 个答案:

没有答案