summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/system.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-12-30 19:56:15 -0600
committerRenato Botelho <renato@netgate.com>2016-01-05 09:08:10 -0200
commitbe6da8a4688e0d6287ec935b9306f9f347fdb71b (patch)
tree97855f541887be07dde527ef728db90745f1c2cd /src/etc/inc/system.inc
parent1e8599e5497384f92b8c45455878e79a943e27a1 (diff)
downloadpfsense-be6da8a4688e0d6287ec935b9306f9f347fdb71b.zip
pfsense-be6da8a4688e0d6287ec935b9306f9f347fdb71b.tar.gz
fix up nginx logging
Diffstat (limited to 'src/etc/inc/system.inc')
-rw-r--r--src/etc/inc/system.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index 6fea420..2108edb 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -874,8 +874,6 @@ function system_syslogd_start() {
$syslogconf .= "*.* {$log_directive}{$g['varlog_path']}/routing.log\n";
}
- $syslogconf .= "!nginx\n";
- $syslogconf .= "*.* {$log_directive}{$g['varlog_path']}/nginx.log\n";
$syslogconf .= "!ntp,ntpd,ntpdate\n";
if (!isset($syslogcfg['disablelocallogging'])) {
$syslogconf .= "*.* {$log_directive}{$g['varlog_path']}/ntpd.log\n";
@@ -965,6 +963,7 @@ function system_syslogd_start() {
$syslogconf .= <<<EOD
local3.* {$log_directive}{$g['varlog_path']}/vpn.log
local4.* {$log_directive}{$g['varlog_path']}/portalauth.log
+local5.* {$log_directive}{$g['varlog_path']}/nginx.log
local7.* {$log_directive}{$g['varlog_path']}/dhcpd.log
*.notice;kern.debug;lpr.info;mail.crit;daemon.none;news.err;local0.none;local3.none;local4.none;local7.none;security.*;auth.info;authpriv.info;daemon.info {$log_directive}{$g['varlog_path']}/system.log
auth.info;authpriv.info |exec /usr/local/sbin/sshlockout_pf 15
@@ -1292,7 +1291,7 @@ pid {$g['varrun_path']}/{$pid_file};
user root wheel;
worker_processes {$max_procs};
-error_log syslog:server=unix:/var/run/log;
+error_log syslog:server=unix:/var/run/log,facility=local5;
events {
worker_connections 1024;
@@ -1307,7 +1306,7 @@ http {
sendfile on;
keepalive_timeout 65;
- access_log syslog:server=unix:/var/run/log combined;
+ access_log syslog:server=unix:/var/run/log,facility=local5 combined;
server {
listen {$nginx_port};
OpenPOWER on IntegriCloud