conmon
conmon copied to clipboard
Long lines will be splitted when journald logs
In https://github.com/containers/conmon/blob/2b087348289664b75c874ce44796f762d636c060/src/ctr_logging.c#L320-L322, 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
thanks for opening the issue @xeor , do you have any interest in opening a PR?
sorry for the delay..
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.