You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* per docker journald logging format, CONTAINER_PARTIAL_MESSAGE is set to true if it's partial, but otherwise not set. */
if (partial&&writev_buffer_append_segment(dev_null, &bufv, "CONTAINER_PARTIAL_MESSAGE=true", PARTIAL_MESSAGE_EQ_LEN) <0)
return-1;
, CONTAINER_PARTIAL_MESSAGE is set static to true. I find no way to turn this off.
This can be problematic example when using ansible tower/awx, which uses conmon/podman to start jobs inside containers running its job since those jobs often contains a bunch of json from ansible. You will end up with a splitted message in journald, which is not even in order..
If you send journald messages to another system as well, you will have no way of putting it together, and it will often break parsing and cause all sorts of problems since there are unbalanced quotes per line.
There should be a way to log without setting CONTAINER_PARTIAL_MESSAGE to true
The text was updated successfully, but these errors were encountered:
I honestly don't think I should try to make a PR for this. I have not been doing a lot (any c programming).
I am working around this by using the logging functionality inside awx/tower instead of journald. So this is still a problem.
In
conmon/src/ctr_logging.c
Lines 320 to 322 in 2b08734
CONTAINER_PARTIAL_MESSAGE
is set static totrue
. I find no way to turn this off.This can be problematic example when using ansible tower/awx, which uses conmon/podman to start jobs inside containers running its job since those jobs often contains a bunch of json from ansible. You will end up with a splitted message in journald, which is not even in order..
If you send journald messages to another system as well, you will have no way of putting it together, and it will often break parsing and cause all sorts of problems since there are unbalanced quotes per line.
There should be a way to log without setting
CONTAINER_PARTIAL_MESSAGE
to trueThe text was updated successfully, but these errors were encountered: