I'm trying to send logs from a jail to the host system on FreeBSD 10.
I think everything is setup correctly but I can't get it working.
Sending logs directly from Nginx 1.7 works but not sending logs via syslog (e.g. PHP-FPM).
This is my host's /etc/rc.conf
:
syslogd_flags="-a 10.0.0.1/24:* -v -v -C"
My host's etc/syslog.conf
:
+ABCD
*.=info /var/log/jails/ABCD/nginx-access.log
*.=error /var/log/jails/ABCD/nginx-error.log
*.* /var/log/jails/ABCD/all.log
This is the jail's etc/rc.conf
:
syslogd_flags="-ss -v -v"
And the jail's etc/syslog.conf
:
!php-fpm
*.* @127.0.0.1
etc/hosts
is setup in both systems.
Sending logs manually directly to the host with logger
works.
Using the debugging function I can see that the jail is forwarding logs that I create manually with logger -t php-fpm
:
Logging to FORW 127.0.0.1
But the logs never arrive on the host. The debugger there doesn't receive any message. Doing the same with Nginx`built-in syslog function works.
I already tried setting syslogd_flags="-s -v -v"
. I then can't send any logs manually any more and the situation doesn't change.