# Amazon S3 Sink Connector - offset

**URL:** <https://forum.confluent.io/t/amazon-s3-sink-connector-offset/11390>\
**Category:** Kafka Connect\
**Created:** [6 September 2024 10:38 UTC](https://forum.confluent.io/t/amazon-s3-sink-connector-offset/11390 "2024-09-06T10:38:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taufiq06](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@Taufiq06](https://forum.confluent.io/u/Taufiq06)\
**Post date:** [6 September 2024 10:38 UTC](https://forum.confluent.io/t/amazon-s3-sink-connector-offset/11390/1 "2024-09-06T10:38:32Z")

</div>

- Does Amazon S3 Sink Connector support including Kafka offset and partition in event while saving in s3 file
- Is there any way to modify the s3 sink connector to include Kafka offset and partition value with each record to output file

---

<div class="post-metadata">

**Author:** ![Cerchie](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/cerchie/32/3978_2.png) [@Cerchie](https://forum.confluent.io/u/Cerchie)\
**Post date:** [9 September 2024 20:13 UTC](https://forum.confluent.io/t/amazon-s3-sink-connector-offset/11390/2 "2024-09-09T20:13:58Z")

</div>

Hi there! in the [documentation on this connector](https://docs.confluent.io/kafka-connectors/s3-sink/current/overview.html#amazon-s3-sink-connector-for-cp), it says

> the key name encodes the topic, the Kafka partition, and the start offset of this data chunk.

So it would seem this info is included in the key name of the event by default.

Note this though: the offset recorded is the _start_ offset of the chunk of data being sent to S3.

---

<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:** [9 October 2024 20:14 UTC](https://forum.confluent.io/t/amazon-s3-sink-connector-offset/11390/3 "2024-10-09T20:14:32Z")

</div>

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