OpenVZ Forum


Home » Mailing lists » Users » Access to kernel logs in VE
Access to kernel logs in VE [message #9389] Fri, 29 December 2006 14:11 Go to next message
Jan Tomasek is currently offline  Jan Tomasek
Messages: 44
Registered: December 2006
Member
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.

Is there some chance how to pass log files to VE to which they belong?

Thanks for help
--
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/
Re: Access to kernel logs in VE [message #9390 is a reply to message #9389] Fri, 29 December 2006 14:18 Go to previous messageGo to next message
Mishin Dmitry is currently offline  Mishin Dmitry
Messages: 112
Registered: February 2006
Senior Member
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 - you may use ipt_LOG for loging to
per-VE log, as it is for stable kernels quite a long ago.

--
Thanks,
Dmitry.
Re: Access to kernel logs in VE [message #9391 is a reply to message #9390] Fri, 29 December 2006 14:44 Go to previous messageGo to next message
Jan Tomasek is currently offline  Jan Tomasek
Messages: 44
Registered: December 2006
Member
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/
Re: Access to kernel logs in VE [message #9395 is a reply to message #9391] Fri, 29 December 2006 16:01 Go to previous message
Mishin Dmitry is currently offline  Mishin Dmitry
Messages: 112
Registered: February 2006
Senior Member
On Friday 29 December 2006 17:44, Jan Tomasek wrote:
> 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?
No, it is git version only right now.
http://git.openvz.org/?p=linux-2.6.18-openvz;a=commit;h=356e4674820ed23c9410f7870def17b70f4fddac

>
> > - 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 "
Yes, it is ipt_LOG target and it is fixed by above commit. Just wait for next
kernel or apply above patch yourself.

>
> 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,
Dmitry.
Previous Topic: a Kernal error.
Next Topic: OpenVZ vs. Virtuozzo...
Goto Forum:
  


Current Time: Fri Nov 08 23:08:19 GMT 2024

Total time taken to generate the page: 0.05718 seconds