aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort/snort_alerts.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-27 17:11:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-27 17:11:36 +0000
commitaf7dce4fad954900886ec5223ddee31d9c6dad46 (patch)
treea0953fc3650ba491bb358a4ae68889458d542988 /packages/snort/snort_alerts.php
parent5bb0b3067102bcac7ab1082b9258d4b025a7ee08 (diff)
downloadpfsense-packages-af7dce4fad954900886ec5223ddee31d9c6dad46.tar.gz
pfsense-packages-af7dce4fad954900886ec5223ddee31d9c6dad46.tar.bz2
pfsense-packages-af7dce4fad954900886ec5223ddee31d9c6dad46.zip
* Do not CLOG alert file
* s/alerts/alert/
Diffstat (limited to 'packages/snort/snort_alerts.php')
-rw-r--r--packages/snort/snort_alerts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/snort/snort_alerts.php b/packages/snort/snort_alerts.php
index e0ba80f2..536cb0f7 100644
--- a/packages/snort/snort_alerts.php
+++ b/packages/snort/snort_alerts.php
@@ -32,7 +32,7 @@
require("guiconfig.inc");
-$snort_logfile = "{$g['varlog_path']}/snort/alerts";
+$snort_logfile = "{$g['varlog_path']}/snort/alert";
$nentries = $config['syslog']['nentries'];
if (!$nentries)
@@ -40,7 +40,7 @@ if (!$nentries)
if ($_POST['clear']) {
exec("killall syslogd");
- exec("/usr/sbin/clog -i -s 262144 {$snort_logfile}");
+ exec("rm {$snort_logfile}; touch {$snort_logfile}");
system_syslogd_start();
}