diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-06 21:31:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-06 21:31:35 +0000 |
commit | e1c0c35af45f0c147627b29d5070177a9ae60474 (patch) | |
tree | 778d9f67149d98d308b00da94c277648b5092053 | |
parent | d19cc554a530ea8301ee45cc9b8584fe4e1601c4 (diff) | |
download | pfsense-e1c0c35af45f0c147627b29d5070177a9ae60474.zip pfsense-e1c0c35af45f0c147627b29d5070177a9ae60474.tar.gz |
Allow disabling of the local writing of log files.
Patch-submitted-by: Mosibi
Minor-changes-by: me
-rw-r--r-- | etc/inc/system.inc | 3 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_settings.php | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 861c77a..60082e4 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -217,7 +217,7 @@ function system_syslogd_start() { printf("Error: cannot open syslog.conf in system_syslogd_start().\n"); return 1; } - + if (! isset($syslogcfg['disablelocallogging'])) { $syslogconf .= <<<EOD local0.* %{$g['varlog_path']}/filter.log local3.* %{$g['varlog_path']}/vpn.log @@ -231,6 +231,7 @@ auth.info;authpriv.info;daemon.info %{$g['varlog_path']}/system.log *.emerg * EOD; + } if (isset($syslogcfg['filter'])) { $syslogconf .= <<<EOD diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index e1ab1d4..bce8202 100755 --- a/usr/local/www/diag_logs_settings.php +++ b/usr/local/www/diag_logs_settings.php @@ -71,6 +71,7 @@ if ($_POST) { $config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false; $config['syslog']['vpn'] = $_POST['vpn'] ? true : false; $config['syslog']['system'] = $_POST['system'] ? true : false; + $config['syslog']['disablelocallogging'] = $_POST['disablelocallogging'] ? true : false; $config['syslog']['enable'] = $_POST['enable'] ? true : false; $oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']); $config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true; @@ -174,6 +175,11 @@ function enable_change(enable_over) { <strong>Enable syslog'ing to remote syslog server</strong></td> </tr> <tr> + <td width="22%" valign="top" class="vtable"> </td> + <td width="78%" class="vtable"> <input name="disable" type="checkbox" id="disablelocallogging" value="yes" <?php if ($pconfig['disablelocallogging']) echo "checked"; ?> onClick="enable_change(false)"> + <strong>Disable writing log files to the local disk</strong></td> + </tr> + <tr> <td width="22%" valign="top" class="vncell">Remote syslog server</td> <td width="78%" class="vtable"> <input name="remoteserver" id="remoteserver" type="text" class="formfld" size="20" value="<?=htmlspecialchars($pconfig['remoteserver']);?>"> |