# Logstash s3 parsing issue

**URL:** <https://discuss.elastic.co/t/logstash-s3-parsing-issue/329484>\
**Category:** Logstash\
**Created:** [April 6, 2023, 6:12am UTC](https://discuss.elastic.co/t/logstash-s3-parsing-issue/329484 "2023-04-06T06:12:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rushikesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rushikesh/32/119417_2.png) [@Rushikesh](https://discuss.elastic.co/u/Rushikesh)\
**Post date:** [April 6, 2023, 6:12am UTC](https://discuss.elastic.co/t/logstash-s3-parsing-issue/329484/1 "2023-04-06T06:12:30Z")

</div>

```auto
output {
  s3 {
    access_key_id => "test"
    secret_access_key => "test"
    bucket => "logstorage"
    region => "us-west-1"
    codec => "json_lines"
    prefix => "%{+YYYY}/%{+MM}/%{+dd}/example.log"

  }
}

```

So I have been using the above config but I want to store all the log in the example.log file but it is creating a directory named example.log and inside that many log file which is not needed.  
Also found that even after applying a dynamic filter for the date it is not getting updated.

---

<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:** [May 4, 2023, 6:12am UTC](https://discuss.elastic.co/t/logstash-s3-parsing-issue/329484/2 "2023-05-04T06:12:56Z")

</div>

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