Loki + Kafka send raw log to Topic

Good afternoon. I have a container that produces some logs and I’m filtering them using a specific regex. After filtering, I’m sending a notification to a Kafka topic, but I would also like to attach the raw log to the message. The default message does not contain the information I need to process.

I tried adding some variables to the message fields, but it didn’t work at all.
image

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.