The jails all have their own unique hostname (and IP), but all share an
rsyslogd instance running on the main host, and the %hostname% and
%fromhost% in all the log messages from the jails are set to the hostname of
the main host. And that is what I want to change.

On Thu, Jul 31, 2008 at 10:00:09AM -0400, (private) HKS wrote:
> 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
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog

Reply via email to