我用的是logstash-7.9.0
Input Config -
cloudwatch {
namespace => "AWS/Lambda"
type => "cloudwatch_lambda"
metrics => [ "Duration", "Errors" ]
tags => [ "application-logs", "lambda-metric-logs" ]
statistics => ["Average"]
filters => { "FunctionName" => "<name_of_the_function>" }
interval => 900
region => "$REGION"
}
输出-
{
"level": "INFO",
"loggerName": "logstash.inputs.cloudwatch",
"timeMillis": 1606241295784,
"thread": "[main]<cloudwatch",
"logEvent": {
"message": "[Aws::CloudWatch::Client 200 0.066722 0 retries] get_metric_statistics(namespace:\"AWS/Lambda\",metric_name:\"Duration\",start_time:2020-11-24 17:53:15 UTC,end_time:2020-11-24 18:08:15 UTC,period:300,statistics:[\"Average\"],dimensions:[{name:\"FunctionName\",value:\"[FILTERED]\"}]) \n"
}
}
输出不会在消息字段中返回任何数据
暂无答案!
目前还没有任何答案,快来回答吧!