From af7dce4fad954900886ec5223ddee31d9c6dad46 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 17:11:36 +0000 Subject: * Do not CLOG alert file * s/alerts/alert/ --- packages/snort/snort_alerts.php | 4 ++-- 1 file 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(); } -- cgit v1.2.3