# S3 input plugin not working

**URL:** <https://discuss.elastic.co/t/s3-input-plugin-not-working/107500>\
**Category:** Logstash\
**Created:** [November 14, 2017, 7:28am UTC](https://discuss.elastic.co/t/s3-input-plugin-not-working/107500 "2017-11-14T07:28:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrvnkmr](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@shrvnkmr](https://discuss.elastic.co/u/shrvnkmr)\
**Post date:** [November 14, 2017, 7:28am UTC](https://discuss.elastic.co/t/s3-input-plugin-not-working/107500/1 "2017-11-14T07:28:24Z")

</div>

Hi,

I am trying to read json files under sub directory(non-prod/abc/) in a s3 bucket(abc-bucket) using s3 input plugin with IAM roles And Below is my configuration

```
  input
    {
    s3 {
            bucket => "abc-bucket"
            prefix => "/non-prod/abc/drop-2017-11-13/"
            region => "us-west-2"
            codec => "json"
          } 
    }
    output {
       stdout { codec => rubydebug }
    }

```

In the logs i can see logstash registering to the s3 bucket and there is no error in logs. But its not reading files under drop-2017-11-13 folder. I tried changing the prefix in different ways but its not working.

In the logs i can see it found the key "S3 input: Found key " but there is no output.

curl is returning data from the file from s3 bucket.

Can some please help me to figure it out? also there will be a new folder created daily. How to read the files under drop-\* dynamically?

---

<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:** [December 12, 2017, 7:28am UTC](https://discuss.elastic.co/t/s3-input-plugin-not-working/107500/2 "2017-12-12T07:28:25Z")

</div>

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