Hello Team
I'm using Logstash-Cloudwatch-input-Plugin. But I'm getting an error. Please do suggest whats's wrong in my Configuration.
Here is Logstash.conf file
input {
cloudwatch {
namespace => "AWS/EC2"
metrics => ["CPUUtilization"]
filters => { "tag:Name"=>"Elasticsearch" }
region => "ap-southeast-1"
access_key_id => "*****************"
secret_access_key => "************************"
}
}
filter{
}
output {
elasticsearch { hosts => "localhost:9200"
index => "cloudwatch_plugin"
}
stdout {codec => "json"}
}
Log File: Plugin: <LogStash::Inputs::CloudWatch namespace=>"AWS/EC2", metrics=>["CPUUtilization"], region=>"ap-southeast-1", access_key_id=>"****************", secret_access_key=><******************>, id=>"33e83d07be7acc0a94dcceaa7d9aec44ff5775d298461c4e973f0bda8495e87f", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_fa596153-633c-429e-accf-58136d997cf0", enable_metric=>true, charset=>"UTF-8">, use_ssl=>true, statistics=>["SampleCount", "Average", "Minimum", "Maximum", "Sum"], interval=>900, period=>300, combined=>false> Error: No metrics to query Exception: RuntimeError
Please do suggest. Thanks for your time