Skip to content

Commit 03d3c2e

Browse files
committed
processor_content_modifier: skip GROUP_START markers during metadata/body processing
Skip GROUP_START markers when the processor is operating on log metadata or body contexts. This prevents the processor from attempting to process group markers as regular log records, which would cause errors since group markers have a different structure than normal log events. Signed-off-by: Eduardo Silva <[email protected]>
1 parent a7d0510 commit 03d3c2e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/processor_content_modifier/cm_logs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ int cm_logs_process(struct flb_processor_instance *ins,
316316
continue;
317317
}
318318

319+
if (record_type == FLB_LOG_EVENT_GROUP_START &&
320+
(ctx->context_type == CM_CONTEXT_LOG_METADATA ||
321+
ctx->context_type == CM_CONTEXT_LOG_BODY)) {
322+
continue;
323+
}
324+
319325
/* retrieve the target cfl object */
320326
if (ctx->context_type == CM_CONTEXT_LOG_METADATA) {
321327
obj = record->cobj_metadata;

0 commit comments

Comments
 (0)