# S3 plugin - unable to change file extension of data in bucket

**URL:** <https://discuss.elastic.co/t/s3-plugin-unable-to-change-file-extension-of-data-in-bucket/31264>\
**Category:** Logstash\
**Created:** [September 28, 2015, 2:58pm UTC](https://discuss.elastic.co/t/s3-plugin-unable-to-change-file-extension-of-data-in-bucket/31264 "2015-09-28T14:58:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trekr5](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@trekr5](https://discuss.elastic.co/u/trekr5)\
**Post date:** [September 28, 2015, 2:58pm UTC](https://discuss.elastic.co/t/s3-plugin-unable-to-change-file-extension-of-data-in-bucket/31264/1 "2015-09-28T14:58:01Z")

</div>

Hello,

I'm currently using the s3 plugin to upload logs from logstash into an s3 bucket. I'd like the uploaded files to be of the type json with a file extension of .json

My problem is that the uploaded files keep appearing as .txt text files even though I have made numerous changes to the s3 plugin code. The format of the file content is json but it has a file extension of .txt

Has anyone else experienced this issue? I don't know if it is because logstash runs constantly and locks the file while building it?

I would really appreciate some assistance.

Regards

---

<div class="post-metadata">

**Author:** ![Vittorio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vittorio/32/18171_2.png) [@Vittorio](https://discuss.elastic.co/u/Vittorio)\
**Post date:** [March 14, 2017, 1:58pm UTC](https://discuss.elastic.co/t/s3-plugin-unable-to-change-file-extension-of-data-in-bucket/31264/2 "2017-03-14T13:58:25Z")

</div>

I didn't find any answers regard this issue, please someone help!

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:** [July 6, 2017, 4:27am UTC](https://discuss.elastic.co/t/s3-plugin-unable-to-change-file-extension-of-data-in-bucket/31264/3 "2017-07-06T04:27:54Z")

</div>


