# Control filename in s3 sink connector

**URL:** <https://forum.confluent.io/t/control-filename-in-s3-sink-connector/2125>\
**Category:** Kafka Connect\
**Created:** [28 June 2021 12:25 UTC](https://forum.confluent.io/t/control-filename-in-s3-sink-connector/2125 "2021-06-28T12:25:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@amir](https://forum.confluent.io/u/amir)\
**Post date:** [28 June 2021 12:25 UTC](https://forum.confluent.io/t/control-filename-in-s3-sink-connector/2125/1 "2021-06-28T12:25:24Z")

</div>

Hi,  
I’m wondering if I can set the file name for something different than:`<prefix>/<topic>/year=YYYY/month=MM/day=dd/<topic>+<kafkaPartition>+<startOffset>.<format>`  
Actually I want to create a file name and in case it is already exists override the old one.  
Thanks,  
Amir

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [29 June 2021 14:27 UTC](https://forum.confluent.io/t/control-filename-in-s3-sink-connector/2125/2 "2021-06-29T14:27:57Z")

</div>

@amir I’m not sure that your specific use case is covered, but I wanted to point you to the S3 documentation around mapping records to S3 objects here.

[https://docs.confluent.io/kafka-connect-s3-sink/current/index.html#mapping-records-to-s3-objects](https://docs.confluent.io/kafka-connect-s3-sink/current/index.html#mapping-records-to-s3-objects)

---

<div class="post-metadata">

**Author:** ![amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@amir](https://forum.confluent.io/u/amir)\
**Post date:** [29 June 2021 14:44 UTC](https://forum.confluent.io/t/control-filename-in-s3-sink-connector/2125/3 "2021-06-29T14:44:20Z")

</div>

Thanks Rick 👍  
Looks like it is not covered…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [29 July 2021 14:44 UTC](https://forum.confluent.io/t/control-filename-in-s3-sink-connector/2125/4 "2021-07-29T14:44:35Z")

</div>

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