# Require example/tutorial for Logstash S3 Input Plugin

**URL:** <https://discuss.elastic.co/t/require-example-tutorial-for-logstash-s3-input-plugin/131907>\
**Category:** Logstash\
**Created:** [May 15, 2018, 10:37am UTC](https://discuss.elastic.co/t/require-example-tutorial-for-logstash-s3-input-plugin/131907 "2018-05-15T10:37:23Z")\
**Posts on this page:** 4\
**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, 10:37am UTC](https://discuss.elastic.co/t/require-example-tutorial-for-logstash-s3-input-plugin/131907/1 "2018-05-15T10:37:23Z")

</div>

I am facing some issues in configuring the logstash s3 input plugin. I tried searching for a tutorial for this plugin but couldn't find any. Could you please provide a link to the tutorial/examples for this plugin if there is one. Otherwise, could you please upload a tutorial/example for the mentioned plugin. I require it for Logstash v6.0 and above.

Thanks,  
Anil

---

<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:** [May 15, 2018, 11:24am UTC](https://discuss.elastic.co/t/require-example-tutorial-for-logstash-s3-input-plugin/131907/2 "2018-05-15T11:24:58Z")

</div>

You'll probably have better luck asking concrete questions about the problems you're having.

---

<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, 12:10pm UTC](https://discuss.elastic.co/t/require-example-tutorial-for-logstash-s3-input-plugin/131907/3 "2018-05-15T12:10:45Z")

</div>

Below is my logstash configuration

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

And I am getting the following output

[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:38:46,005][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/home/vagrant/logstash-6.2.4/modules/fb\_apache/configuration"}  
[2018-05-15T11:38:46,038][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/home/vagrant/logstash-6.2.4/modules/netflow/configuration"}  
[2018-05-15T11:38:46,631][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-05-15T11:38:47,305][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.2.4"}  
[2018-05-15T11:38:47,744][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-05-15T11:39:10,034][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>2, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2018-05-15T11:39:10,173][INFO][logstash.inputs.s3] Registering s3 input {:bucket=\>"s3-.amazonaws.com", :region=\>"us-west-2"}  
[2018-05-15T11:39:10,647][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x2ab014a5 run\>"}  
[2018-05-15T11:39:10,896][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>["main"]}  
[2018-05-15T12:07:59,433][ERROR][logstash.inputs.s3] S3 input: Unable to list objects in bucket {:prefix=\>"/data\_log/audit/", :message=\>"The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."}

I am not sure what to pass as 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, 12:10pm UTC](https://discuss.elastic.co/t/require-example-tutorial-for-logstash-s3-input-plugin/131907/4 "2018-06-12T12:10:46Z")

</div>

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