# How to Configure S3 input plugin?

**URL:** <https://discuss.elastic.co/t/how-to-configure-s3-input-plugin/59371>\
**Category:** Logstash\
**Created:** [August 30, 2016, 10:41pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-plugin/59371 "2016-08-30T22:41:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allie\_Yang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allie_yang/32/16538_2.png) [@Allie\_Yang](https://discuss.elastic.co/u/Allie_Yang)\
**Post date:** [August 30, 2016, 10:41pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-plugin/59371/1 "2016-08-30T22:41:47Z")

</div>

Hi I am trying to connect the S3 bucket to my logstash, since i have stored log files on S3. Would you pls suggest **what i am missing**?

**Below is my input filter:**  
input {  
s3 {  
bucket =\> "purchaselogs"  
access\_key\_id =\> " **@**.com"  
secret\_access\_key =\> "\*\*\*\*\*\*"  
interval =\> 300  
region =\> "cn-north-1"  
use\_ssl =\> true  
}  
}

**AND below is the error:**  
A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::S3 bucket=\>"purchaselogs", access\_key\_id=\>"\*\*\*\*@ **_.com", secret\_access\_key=\>"_**", interval=\>300, region=\>"cn-north-1", use\_ssl=\>true, codec=\>\<LogStash::Codecs::Plain charset=\>"UTF-8"\>, delete=\>false, temporary\_directory=\>"/var/folders/l7/dyln\_9550l5drgt9cxtgq3200000gn/T/logstash"\>  
Error: initialize: name or service not known {:level=\>:error}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 30, 2016, 10:45pm UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-plugin/59371/2 "2016-08-30T22:45:53Z")

</div>

> [@Allie\_Yang](#):
>
> name or service not known

That would suggest a connection problem to S3.  
Can you use their CLI tools to check connectivity with your details?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 31, 2016, 6:54am UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-plugin/59371/3 "2016-08-31T06:54:50Z")

</div>

This is a known problem with the S3 output which apparently also applies to the S3 input.

> <https://github.com/logstash-plugins/logstash-output-s3/issues/72>

---

<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:** [July 6, 2017, 4:40am UTC](https://discuss.elastic.co/t/how-to-configure-s3-input-plugin/59371/4 "2017-07-06T04:40:38Z")

</div>


