Do the jails all share the same hostname and IP? If not, you should be
able to use the %hostname% or %fromhost% properties.

If so, are they each running their own instance of (r)syslogd?

-HKS

On Thu, Jul 31, 2008 at 7:11 AM, David Darville
<[EMAIL PROTECTED]> wrote:
> Hello everyone
>
> I am trying to configure rsyslog to service a number of chroot jails in
> addition to the host itself.
>
> But I need to change the hostname field of the syslog messages from the
> different jails, so that I place them in the right log file on the central
> logging host.
>
> My current rsyslog.conf is as follows:
>
> $ModLoad imuxsock
> $ModLoad imklog
> $ModLoad immark
> $ModLoad omrelp
>
> $AddUnixListenSocket /jail/1/dev/log
> $AddUnixListenSocket /jail/2/dev/log
>
> *.* :omrelp:10.0.0.4:2514
>
>
> Can anyone please advice me on how to do that?
>
>
> ---
>
> David Darville
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog

Reply via email to