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: