# Can I specify the filename in logstash-output-s3?

**URL:** <https://discuss.elastic.co/t/can-i-specify-the-filename-in-logstash-output-s3/43091>\
**Category:** Logstash\
**Created:** [March 1, 2016, 9:03am UTC](https://discuss.elastic.co/t/can-i-specify-the-filename-in-logstash-output-s3/43091 "2016-03-01T09:03:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hfuops](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@hfuops](https://discuss.elastic.co/u/hfuops)\
**Post date:** [March 1, 2016, 9:03am UTC](https://discuss.elastic.co/t/can-i-specify-the-filename-in-logstash-output-s3/43091/1 "2016-03-01T09:03:42Z")

</div>

Greetings,

```
because the original name is pretty strange which may be like ls.s3.26facecb-62c1-4d29-8608-0fb8fd327c15.2016-02-26T07.15.part0.txt

```

I want to the files displayed on S3 with a regular name,

i.e ${YY}-{MM}-{DD}.txt. Yet, it looks there is no configuration for it.

Do we have any work around to resolve this issue or Must I rewrite the source code of this plugin ?

P.S

` input {

tcp {  
add\_field =\> ["type", "syslog"]  
host =\> "0.0.0.0"  
port =\> "5514"  
}  
udp {  
add\_field =\> ["type", "syslog"]  
host =\> "0.0.0.0"  
port =\> "5514"  
}

}

filter {

}

output {

```
      s3 {
            access_key_id => "xxxxxx"
            secret_access_key => "xxxxx"
            region => "us-east-1"
            bucket => "logs"
            size_file => 10240
            time_file => 60
            canned_acl => "private"
      }

```

}`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 1, 2016, 9:30pm UTC](https://discuss.elastic.co/t/can-i-specify-the-filename-in-logstash-output-s3/43091/2 "2016-03-01T21:30:27Z")

</div>

I don't think you can, no. I can see this relevant issue on GH - [https://github.com/logstash-plugins/logstash-output-s3/issues/4](https://github.com/logstash-plugins/logstash-output-s3/issues/4)

If you'd like to make a PR against it we'd strongly encourage you!

---

<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/can-i-specify-the-filename-in-logstash-output-s3/43091/3 "2017-07-06T05:09:01Z")

</div>


