I have a setup where docker containers use the journald
log driver to write their logs. Currently log lines from the journal are forwarded to rsyslog running on the host, but the application name on the syslog lines appears as dockerd
.
As a workaround, I'd like to write the CONTAINER_NAME
field form the journal metadata into the line that appears in syslog, so I can identify what container wrote what line after the host's syslog has been shipped to a syslog aggregation server.
Any suggestions?