Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(logs): stop logging partition eof as an error in the rust logs consumer (#130450)

Frank Hamandeef3103aa42b
diff --git a/rust/logs-ingestion/src/service/kafka_source.rs b/rust/logs-ingestion/src/service/kafka_source.rs
index 49c7c1b5c8bc..5e33e5a69889 100644
--- a/rust/logs-ingestion/src/service/kafka_source.rs
+++ b/rust/logs-ingestion/src/service/kafka_source.rs
@@ -39,7 +39,8 @@ pub fn consumer_client_config(
("queued.max.messages.kbytes", "102400"),
("metadata.max.age.ms", "30000"),
("socket.timeout.ms", "30000"),
- ("enable.partition.eof", "true"),
+ // Node enables this, but rust-rdkafka logs every end-of-partition event at ERROR level, and nothing here needs them.
+ ("enable.partition.eof", "false"),
// Node sets this in both consumer versions, so a new group starts at the oldest offset.
("auto.offset.reset", "earliest"),
] {