包装: 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建议)。每次我取回所有日志事件。