# S3 input plugin

**URL:** <https://discuss.elastic.co/t/s3-input-plugin/42694>\
**Category:** Logstash\
**Created:** [February 25, 2016, 10:17am UTC](https://discuss.elastic.co/t/s3-input-plugin/42694 "2016-02-25T10:17:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniamin](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@aniamin](https://discuss.elastic.co/u/aniamin)\
**Post date:** [February 25, 2016, 10:17am UTC](https://discuss.elastic.co/t/s3-input-plugin/42694/1 "2016-02-25T10:17:14Z")

</div>

I want to send log of ELB to s3 bucket. ELB logs of different service will be in different directory of my main log bucket. When I tried to put that in my input s3 conf, I am not getting any log  
Here is my s3 input conf file:  
input {  
s3 {  
bucket =\> "production-logs"  
region =\> "us-east-1"  
prefix =\> "elb/"  
type =\> "elb"  
sincedb\_path =\> "log\_sincedb"  
}  
}

But If I set a name of filepath as prefix then I can view the log in Kibana. (example: elb/production-XXXX/AWSLogs/XXXXXX/elasticloadbalancing/us-east-1/2016/02/24/). But I want to send log from all subdirectory of my bucket

---

<div class="post-metadata">

**Author:** ![StephenGoodall](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@StephenGoodall](https://discuss.elastic.co/u/StephenGoodall)\
**Post date:** [February 25, 2016, 12:55pm UTC](https://discuss.elastic.co/t/s3-input-plugin/42694/2 "2016-02-25T12:55:03Z")

</div>

do you have logstash on debug mode (it should show what it is doing on s3)? It could be taking a long time to recursively list all the files from all the directories.

---

<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, 5:09am UTC](https://discuss.elastic.co/t/s3-input-plugin/42694/3 "2017-07-06T05:09:36Z")

</div>


