loki.process stage.multiline block #4172
Replies: 1 comment
-
Did you end up finding something ? Facing the same right now. The regex works in regex101, but it doesnt seem to apply the multiline block process in the pipeline. Shameful edit: This is the block that worked for me: loki.process "multiline_log" { Log line looks like: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an aws ecs service that pulls rds postgres logs that dump via the json log driver. A raw log message looks like this:
{"log":"2023-06-15 19:38:20 UTC:10.104.11.247(45320):someuser@someapp:[30921]:LOG: connection authorized: user=someuser database=somedb SSL enabled (protocol=TLSv1.2, cipher=AES128-GCM-SHA256, bits=128)\n","stream":"stdout","attrs":{"tag":"rds-log-forwarder/somedb/fade2c1501dae41170642062d9e104e83b8fd216b1ba593ba5caef1e3ad3e797"},"time":"2023-06-15T19:40:37.139914672Z"}
My loki.process config has several stages which process just fine (json, regex, labels, drop) with the exception of stage.multiline:
stage.multiline {
firstline = "^\d{4}-\d{2}-\d{2}"
max_wait_time = "10s"
}
My assumption was that this expression would match '2023-06-15', but it is not working. Any suggestions would be much appreciated. I'm using grafana agent v0.33.1
Beta Was this translation helpful? Give feedback.
All reactions