[Lxc-users] note on using rsyslog in a container

Papp Tamas tompos at martos.bme.hu
Mon Nov 7 18:33:28 UTC 2011


On 11/07/2011 06:44 PM, Ulli Horlacher wrote:
> On Tue 2011-01-11 (02:54), Mike wrote:
>
>> I noticed netfilter messages getting trashed in the various
>> /var/log/messages on a system with two containers, netfilter rules on
>> the host, and each container and the host running rsyslog.  On closer
>> inspection, I realized that only every other character or so of the
>> message was appearing in a given log file.
> Today I fall into the same pit, thanks to the list archive I found your
> workaround:
>
>> Disabling kernel logging in the containers, by commenting out "$ModLoad
>> imklog" in /etc/rsyslog.conf, straightened out the log files.
> Now only the host gets the netfilter (iptables) log messages.
> Not quite what I want...
> Will this issue be fixed in the future?

Also ULOG target can be used as an alternative.

tamas





More information about the lxc-users mailing list