# Logstash s3 input plugin file extension in prefix not working

**URL:** <https://discuss.elastic.co/t/logstash-s3-input-plugin-file-extension-in-prefix-not-working/243352>\
**Category:** Logstash\
**Created:** [July 31, 2020, 12:24pm UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-file-extension-in-prefix-not-working/243352 "2020-07-31T12:24:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orest\_Gulman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orest_gulman/32/46463_2.png) [@Orest\_Gulman](https://discuss.elastic.co/u/Orest_Gulman)\
**Post date:** [July 31, 2020, 12:24pm UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-file-extension-in-prefix-not-working/243352/1 "2020-07-31T12:24:30Z")

</div>

Hi.  
I would like to specify a file extension that should be read by logstash.  
Below my config that I've tried and it's not working.

```
input {
  s3 {
    access_key_id => ""
    secret_access_key => ""
    bucket => "logs"
    prefix => "dx/*.log"
    type => "aws-logs"
  }
}

```

is there any workaround how to achieve this?  
Thanks!

---

<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:** [August 28, 2020, 12:24pm UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-file-extension-in-prefix-not-working/243352/2 "2020-08-28T12:24:37Z")

</div>

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