For the complete documentation index, see llms.txt. This page is also available as Markdown.

Record creation timestamp

Preserve original record timestamps.

Every Kafka record carries a creation timestamp — the event time producers and consumers rely on for ordering, retention, and windowing. Replicating a record without preserving that timestamp would make the copy on the target Kafka cluster look like a new event.

By default K2K keeps the source timestamp when writing to the target Kafka cluster. Set features.keepRecordCreationTimestamp: disabled to let the broker on the target Kafka cluster assign the write time instead.

Prerequisites

Example

name: "my_pipeline"
features:
  keepRecordCreationTimestamp: disabled
source:
  kafka:
    common:
      "bootstrap.servers": "source:9092"
    consumer:
      "group.id": "my-k2k-group"
target:
  kafka:
    common:
      "bootstrap.servers": "target:9092"
replication:
  - source:
      topic: "orders.*"
  - sink:
      topic: source
      partition: source

Configuration keys

Key
Description
Required
Default
Used by

features.keepRecordCreationTimestamp

Preserve the record creation timestamp when replicating

No

enabled

Replicator

Last updated

Was this helpful?