Replies: 1 comment 1 reply
-
Hey there @z0rc, apologies for the belated response! To process log entries, take a look at the loki.process component. More specifically, you can make use of the The underlying issue would not be fixed just by using JSON since they'd still be separate lines in the log file the Agent is tailing, and by default would be separate entries. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have simple agent deployment with following config:
It works okay and as expected, Kubernetes events are available in Loki.
My problem is that events posted to loki are formatted with
logfmt
. And this format has nasty edge cases around multiline strings, for example event for failed readiness probe includes multiline python traceback. I hope that by usingjson
insteadlogfmt
this edge case can be mitigated. But I just cannot find a way to express this in configuration logic. Is there a way to convertloki.source.kubernetes_events
to json somewhere in pipeline?Beta Was this translation helpful? Give feedback.
All reactions