# S3 input plugin errors

**URL:** <https://discuss.elastic.co/t/s3-input-plugin-errors/143779>\
**Category:** Logstash\
**Created:** [August 9, 2018, 11:42pm UTC](https://discuss.elastic.co/t/s3-input-plugin-errors/143779 "2018-08-09T23:42:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcui\_dxc](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lcui\_dxc](https://discuss.elastic.co/u/lcui_dxc)\
**Post date:** [August 9, 2018, 11:42pm UTC](https://discuss.elastic.co/t/s3-input-plugin-errors/143779/1 "2018-08-09T23:42:55Z")

</div>

Hello there,

I started a new s3 input plugin on logstash and noticed the following error in the logstash.log:

# ========================== [2018-08-09T19:46:26,790][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600} [2018-08-09T19:46:43,822][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin. Pipeline\_id:main Plugin: \<LogStash::Inputs::S3 access\_key\_id=\>"123", secret\_access\_key=\>, region=\>"us-east-1", bucket=\>"vvv-apaas-hls-cloudtrail", prefix=\>"AWSLogs/xxxxxx/ CloudTrail/us-east-1/2018/08/09/", codec=\>\<LogStash::Codecs::Plain id=\>"plain\_3a15bda5-6772-42d8-9eb4-fd901473fde3", enable\_metric=\>true, charset=\>"UTF-8"\>, id=\>"4cc2a77b3e48f7127152c9ea7aa 03b87e7210885d5bb361307e6dbbd592d8b3f", enable\_metric=\>true, role\_session\_name=\>"logstash", delete=\>false, interval=\>60, temporary\_directory=\>"/tmp/logstash"\> Error: Failed to open TCP connection to [xxxx-cloudtrail.s3.amazonaws.com:443](http://xxxx-cloudtrail.s3.amazonaws.com:443) (initialize: name or service not known) Exception: Seahorse::Client::NetworkingError Stack: org/jruby/ext/socket/RubyTCPSocket.java:137:in `initialize' org/jruby/RubyIO.java:1154:in`open' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:885:in `block in connect' org/jruby/ext/timeout/Timeout.java:149:in`timeout' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:883:in `connect' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:868:in`do\_start' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:863:in `start' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/delegate.rb:83:in`method\_missing'

No data from s3 was been pulled to elasticsearch...

Here is the configuration:

==========================  
input {  
s3 {  
access\_key\_id =\> "1234"  
secret\_access\_key =\> "5678"  
region =\> "us-east-1"  
bucket =\> "my-cloudtrail"  
prefix =\> "AWSLogs/CloudTrail/"  
codec =\> "plain"  
}  
}

# The filter part of this file is commented out to indicate that it

# is optional.

# filter {

# 

# }

# output { elasticsearch { action =\> "index" hosts =\> ["xx.xx.xx.xx"] } s3 { access\_key\_id =\> "1234" secret\_access\_key =\> "5678" region =\> "us-east-1" bucket =\> "my-backup-bucket" } }

Please help and let me know what went wrong

Thank you very much

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 6, 2018, 11:43pm UTC](https://discuss.elastic.co/t/s3-input-plugin-errors/143779/2 "2018-09-06T23:43:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
