From 409ac4eb7afd5e0296ab519538857067f8c12c8d Mon Sep 17 00:00:00 2001 From: Martinski4GitHub <119833648+Martinski4GitHub@users.noreply.github.com> Date: Sun, 9 Aug 2026 03:06:37 -0700 Subject: [PATCH] Update wlceventd Updated configuration file to handle the new system "/jffs/wifi_wlc.log" file. --- syslog-ng.d/wlceventd | 29 ++++++++++++++++++++++++----- syslog-ng.share/wlceventd | 4 ++-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/syslog-ng.d/wlceventd b/syslog-ng.d/wlceventd index 8a0b6b3..f284fbe 100644 --- a/syslog-ng.d/wlceventd +++ b/syslog-ng.d/wlceventd @@ -1,20 +1,39 @@ # put wlceventd Assoc/ReAssoc/Disassoc messages into /opt/var/log/wlceventd.log +################################################ +# This configuration file now includes the +# the system new "/jffs/wifi_wlc.log" file +# as a 'source' for the filtered log file. +# Last Modified: 2026-Aug-01 +################################################ +source s_wifi_wlc { + wildcard_file(base_dir("/jffs") + filename_pattern("wifi_wlc.log") + recursive(no) max-files(1) + follow-method(inotify) + monitor-method(inotify) + log_fetch_limit(500) + flags(syslog-protocol)); +}; + destination d_wlceventd { file("/opt/var/log/wlceventd.log"); }; filter f_wlceventd { ( ( program("WLCEVENTD") or - program("wlceventd") ) and - ( message("ssoc") or - message("uth") ) ) or - ( program("syslog") and - message("wlceventd") ); + program("wlceventd") ) + and + ( message("ssoc") or + message("uth") ) + ) or + (program("syslog") and + message("wlceventd") ); }; log { source(src); + source(s_wifi_wlc); filter(f_wlceventd); destination(d_wlceventd); flags(final); diff --git a/syslog-ng.share/wlceventd b/syslog-ng.share/wlceventd index ea08d0b..f284fbe 100644 --- a/syslog-ng.share/wlceventd +++ b/syslog-ng.share/wlceventd @@ -10,9 +10,9 @@ source s_wifi_wlc { wildcard_file(base_dir("/jffs") filename_pattern("wifi_wlc.log") recursive(no) max-files(1) - follow-method("inotify") + follow-method(inotify) monitor-method(inotify) - log_fetch_limit(1000) + log_fetch_limit(500) flags(syslog-protocol)); };