amazon-archives / logstash-input-dynamodb

This input plugin for Logstash scans a specified DynamoDB table and then reads changes to a DynamoDB table from the associated DynamoDB Stream.This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline. This gem is not a stand-alone program.
Apache License 2.0
105 stars 27 forks source link

Not able to connect to AWS ES #31

Open shekhargoat opened 7 years ago

shekhargoat commented 7 years ago

I have setup logstash dynamodb input plugin in a EC2 instance and the below if my configuration file to start the plugin:

input { dynamodb{ endpoint => "dynamodb.us-east-1.amazonaws.com" streams_endpoint => "streams.dynamodb.us-east-1.amazonaws.com" view_type => "new_and_old_images" aws_access_key_id => "xxxxxxxxxxxxxxxx" aws_secret_access_key => "xxxxxxxxxxx" table_name => "FoodItem" } } output { elasticsearch { host => ["search-testfooditemdomain-yw2nsxkyfmub2x7ijfyra5v6xu.us-east-1.es.amazonaws.com"] region => "us-east-1" aws_access_key_id => "xxxxxxxxxxxxxxxx" aws_secret_access_key => "xxxxxxxxxxx" } stdout { } }

I am getting the following error: Pipeline aborted due to error {:exception=>"LogStash::ConfigurationError", :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/config/mixin.rb:88:in config_init'", "org/jruby/RubyHash.java:1342:ineach'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/config/mixin.rb:72:in config_init'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/outputs/base.rb:79:ininitialize'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/output_delegator.rb:74:in register'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:181:instart_workers'", "org/jruby/RubyArray.java:1613:in each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:181:instart_workers'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:136:in run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/agent.rb:491:instart_pipeline'"], :level=>:error}

Please help since I am new to this plugin.