[syslog-ng] Collecting logs from a chrooted appli

Geller, Sandor (IT) Sandor.Geller at morganstanley.com
Fri Jun 6 10:07:42 CEST 2008


> I setup syslog-ng.conf with this setings to let create the stream:
> source src_chroot_appli { unix-stream("/var/appli/dev/log"); };
> It works and create the socket.
> then i config the application log stream path to /dev/log (as
> the application is chrooted, the root directory is already
> /var/appli, so logging to /dev/log is ok )
> then the configuration to log it in the appli.log file in the
> /var/log/ outside the chroot :
> destination appli_log { file("/var/log/appli.log"); };
> then
> log { source(src_chroot_appli); destination(appli_log); };
> But nothing is created in the /var/log directory (outside chroot).
> Btw: syslog-ng version is 1.6.9

Could you trace the application? It would be really good to see
how does it try to log. The best would be to start it under strace.



NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

More information about the syslog-ng mailing list