From ff5f8d9a8590822f35fd0419ad3095ba36caffd1 Mon Sep 17 00:00:00 2001 From: Kian Jones <11655409+kianjones9@users.noreply.github.com> Date: Thu, 30 Oct 2025 11:14:33 -0700 Subject: [PATCH] fix: on error send (#5851) on error send --- otel/otel-collector-config-clickhouse-prod.yaml | 4 +++- otel/otel-collector-config-clickhouse.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/otel/otel-collector-config-clickhouse-prod.yaml b/otel/otel-collector-config-clickhouse-prod.yaml index bc68fa47..4a09d0e4 100644 --- a/otel/otel-collector-config-clickhouse-prod.yaml +++ b/otel/otel-collector-config-clickhouse-prod.yaml @@ -9,14 +9,16 @@ receivers: include: - /root/.letta/logs/Letta.log operators: - # Parse JSON logs + # Parse JSON logs (skip non-JSON lines) - type: json_parser parse_from: body parse_to: attributes + on_error: send - type: time_parser parse_from: attributes.timestamp layout_type: gotime layout: '2006-01-02T15:04:05.999999Z07:00' + on_error: send processors: memory_limiter: diff --git a/otel/otel-collector-config-clickhouse.yaml b/otel/otel-collector-config-clickhouse.yaml index 57d2f7a5..e0479d56 100644 --- a/otel/otel-collector-config-clickhouse.yaml +++ b/otel/otel-collector-config-clickhouse.yaml @@ -9,14 +9,16 @@ receivers: include: - /root/.letta/logs/Letta.log operators: - # Parse JSON logs + # Parse JSON logs (skip non-JSON lines) - type: json_parser parse_from: body parse_to: attributes + on_error: send - type: time_parser parse_from: attributes.timestamp layout_type: gotime layout: '2006-01-02T15:04:05.999999Z07:00' + on_error: send processors: memory_limiter: