Closed tankhuu closed 6 years ago
I found my problem, missing the option "combined". By adding it, I can collect the metric data now:
input {
cloudwatch {
namespace => "AWS/ES"
metrics => [ "CPUUtilization" ]
combined => true
filters => {
"DomainName" => "my-ES-domainName"
"ClientId" => "my-AWS-AccountId"
}
aws_credentials_file => "/etc/logstash/aws_credential.yml"
region => "ap-southeast-1"
}
}
output {
if [namespace] == "AWS/ES" {
stdout {codec => rubydebug}
}
}
I can get the metric data with this AWS CLI command.
But I can't configure the logstash input to collect it, Because the dimensions need 2 parameters, which are DomainName, and ClientId to collect data for namespace AWS/ES. But when I configure in logstash, They had been separated to 2 polls command. Please help. Here are my configuration file, and the error I receive:
Configuration File:
Running Log Received:
Using AWS CLI:
Result: