From e48d2b403efb8a5d2316819dad7213b841fc3eb0 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 14 Jun 2012 19:45:12 +0000 Subject: Catch up with snort alert log change --- config/widget-snort/snort_alerts.inc | 2 +- config/widget-snort/snort_alerts_helper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/widget-snort/snort_alerts.inc b/config/widget-snort/snort_alerts.inc index 08e6c3f7..159452dd 100644 --- a/config/widget-snort/snort_alerts.inc +++ b/config/widget-snort/snort_alerts.inc @@ -6,7 +6,7 @@ require_once("includes/snort_alerts.inc.php"); $snort_alerts_title = "Snort Alerts"; $snort_alerts_title_link = "snort/snort_alerts.php"; -foreach (glob("{$g['varlog_path']}/snort/alert_*") as $alert) { +foreach (glob("{$g['varlog_path']}/snort/*/alert") as $alert) { $snort_alerts_logfile = $alert; $nentries = 10; $snort_alerts = get_snort_alerts($snort_alerts_logfile, $nentries); diff --git a/config/widget-snort/snort_alerts_helper.php b/config/widget-snort/snort_alerts_helper.php index 46d68eac..5df0da04 100644 --- a/config/widget-snort/snort_alerts_helper.php +++ b/config/widget-snort/snort_alerts_helper.php @@ -3,7 +3,7 @@ require_once("globals.inc"); require_once("guiconfig.inc"); require_once("includes/snort_alerts.inc.php"); -foreach (glob("{$g['varlog_path']}/snort/alert_*") as $alert) { +foreach (glob("{$g['varlog_path']}/snort/*/alert") as $alert) { $snort_alerts_logfile = $alert; $nentries = 5; $snort_alerts = get_snort_alerts($snort_alerts_logfile, $nentries); -- cgit v1.2.3