[Users] Access to kernel logs in VE

Jan Tomasek jan at tomasek.cz
Fri Dec 29 09:44:04 EST 2006


Dmitry Mishin wrote:
> On Friday 29 December 2006 17:11, Jan Tomasek wrote:
>> Hello,
>>
>> I need advice how to konfigure kernel loging for VE. I'm interested in
>> iptables logs. By default all log mesages goes to log files of HW node.
>> That can get realy messy when number of VE is growing.
> It was recently fixed for devel kernels

I'm using 2.6.18-028test007. Is it in there?

> - you may use ipt_LOG for loging to
> per-VE log, as it is for stable kernels quite a long ago.

I'm using in iptables:

$IPT -A ssh -i $EXTERNAL -p tcp -m limit --limit $LIMIT -j LOG
--log-prefix "wiki: DROP-ssh "

But it ends in HW node logs. Where is syslog in VE suposed to listen?
I'm using syslog-ng with this setup:

source src {
        pipe("/proc/kmsg" log_prefix("kernel: "));
	unix-dgram("/dev/log");
        internal();
};

and it receive nothing.

Thanks for you help Dmitry!
-- 
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://openvz.org/pipermail/users/attachments/20061229/7505000a/signature.bin


More information about the Users mailing list