# Logstash configuration error while reading data from s3

**URL:** <https://discuss.elastic.co/t/logstash-configuration-error-while-reading-data-from-s3/131918>\
**Category:** Logstash\
**Created:** [May 15, 2018, 11:20am UTC](https://discuss.elastic.co/t/logstash-configuration-error-while-reading-data-from-s3/131918 "2018-05-15T11:20:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anilkumar\_Patel](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Anilkumar\_Patel](https://discuss.elastic.co/u/Anilkumar_Patel)\
**Post date:** [May 15, 2018, 11:20am UTC](https://discuss.elastic.co/t/logstash-configuration-error-while-reading-data-from-s3/131918/1 "2018-05-15T11:20:20Z")

</div>

I am facing an error while configuring logstash to fetch data from s3 below is the configuration of logstash s3 input plugin.

input {  
s3 {  
access\_key\_id =\> "################"  
bucket =\> "anil-data"  
region =\> "###########"  
secret\_access\_key =\> "###############"  
prefix =\> "/"  
type =\> "s3"  
}  
}  
output {  
stdout { codec =\> rubydebug }  
}

o/p

[vagrant@slave1 logstash-6.2.4]$ ./bin/logstash -f logstash.conf  
Sending Logstash's logs to /home/vagrant/fclogs/logstash-6.4.3/logs which is now configured via log4j2.properties  
[2018-05-15T11:16:00,377][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/home/vagrant/logstash-6.2.4/modules/fb\_apache/configuration"}  
[2018-05-15T11:16:00,403][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/home/vagrant/logstash-6.2.4/modules/netflow/configuration"}  
[2018-05-15T11:16:00,983][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-05-15T11:16:01,723][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.2.4"}  
[2018-05-15T11:16:02,162][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-05-15T11:16:23,734][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>2, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2018-05-15T11:16:23,845][INFO][logstash.inputs.s3] Registering s3 input {:bucket=\>"anil-data", :region=\>"us-east-2"}  
[2018-05-15T11:16:24,410][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x4ada52ed run\>"}  
[2018-05-15T11:16:24,663][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>["main"]}  
[2018-05-15T11:16:28,165][ERROR][logstash.inputs.s3] S3 input: Unable to list objects in bucket {:prefix=\>"/", :message=\>"The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."}  
[2018-05-15T11:17:27,590][ERROR][logstash.inputs.s3] S3 input: Unable to list objects in bucket {:prefix=\>"/", :message=\>"The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."}

---

<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:** [June 12, 2018, 11:20am UTC](https://discuss.elastic.co/t/logstash-configuration-error-while-reading-data-from-s3/131918/2 "2018-06-12T11:20:21Z")

</div>

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