elasticsearch,logstash,cloudwatch,Amazon Web Services,elasticsearch,Logstash,Cloudwatch" /> elasticsearch,logstash,cloudwatch,Amazon Web Services,elasticsearch,Logstash,Cloudwatch" />

Amazon web services Logstash cloudwatch输入插件未向Elasticsearch发送数据

Amazon web services Logstash cloudwatch输入插件未向Elasticsearch发送数据,amazon-web-services,elasticsearch,logstash,cloudwatch,Amazon Web Services,elasticsearch,Logstash,Cloudwatch,我在专用vpc网络中设置了一个EC2实例,IAM角色如下所示: { "Version": "2012-10-17", "Statement": [ { "Sid": "CloudWatchAccess", "Effect": "Allow", "Action": [ "cloudwatch:*" ], "Resou

我在专用vpc网络中设置了一个EC2实例,IAM角色如下所示:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "CloudWatchAccess",
            "Effect": "Allow",
            "Action": [
                "cloudwatch:*"
            ],
            "Resource": "*"
        },
        {
            "Sid": "EC2",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeInstances"
            ],
            "Resource": "*"
        }
    ]
}
我的日志存储配置文件具有:

input {
stdin{}
cloudwatch {
namespace => "AWS/EC2"
        metrics => [ 'CPUUtilization']
        filters => { "tag:TAG" => "VALUE" }
        region => "us-east-1"
    proxy_uri => “http://proxy.company.com:port/”
}
}
output {
stdout {
codec => rubydebug
  }
  elasticsearch {
hosts => ["IP:PORT"]
  }
}
我使用以下方法开始日志存储:

/path/to/logstash -f /path/to/logstash.conf
命令运行时,我可以在调试模式下查看cloudwatch中的数据:

{:timestamp=>"2016-04-13T17:26:40.685000-0400", :message=>"DPs: {:datapoints=>[{:timestamp=>2016-04-13 21:24:00 UTC, :sample_count=>2.0, :unit=>\"Percent\", :minimum=>0.17, :maximum=>0.25, :sum=>0.42000000000000004, :average=>0.21000000000000002}, {:timestamp=>2016-04-13 21:22:00 UTC, :sample_count=>2.0, :unit=>\"Percent\", :minimum=>0.08, :maximum=>0.17, :sum=>0.25, :average=>0.125}], :label=>\"CPUUtilization\", :response_metadata=>{:request_id=
但是logstash并没有把任何东西推给elasticsearch


有人知道可能是什么问题吗?或者知道如何调试此插件?

要解决此问题,您可以使用插件的1.1.2版本,或者更新您的cloudwatch.rb和logstash-input-cloudwatch.gempec:

要解决此问题,您可以使用插件的1.1.2版本或更新cloudwatch.rb和logstash-input-cloudwatch.gempec: