What's new

Feature Request - Add regex filter in system log

dineshgyl

Occasional Visitor
Hi,

I am using - RT-AX86U Pro 3006.102.6

I have lot of devices and every now and then I get below messages from my IOT devices. I am just showing snipped but there messages come from all the other MAC address as well. This floods the syslog and also causes lot of wear/tear of NAND.

I think this is controlled via klod/syslogd

Code:
wlceventd: wlceventd_proc_event(645): eth6: Deauth_ind 2C:AF:AE:55:D1:55, status: 0, reason: Unspecified reason (1), rssi:0

wlceventd: wlceventd_proc_event(685): eth6: Auth 2C:AF:AE:55:D1:55, status: Successful (0), rssi:0

wlceventd: wlceventd_proc_event(645): eth6: Deauth_ind 2C:AF:AE:55:D1:55, status: 0, reason: Unspecified reason (1), rssi:0

wlceventd: wlceventd_proc_event(685): eth6: Auth 2C:AF:AE:55:D1:55, status: Successful (0), rssi:0

wlceventd: wlceventd_proc_event(645): eth6: Deauth_ind 2C:AF:AE:55:D1:55, status: 0, reason: Unspecified reason (1), rssi:0

wlceventd: wlceventd_proc_event(685): eth6: Auth 2C:AF:AE:55:D1:55, status: Successful (0), rssi:0

wlceventd: wlceventd_proc_event(722): eth6: Assoc 2C:AF:AE:55:D1:55, status: Successful (0), rssi:-45

wlceventd: wlceventd_proc_event(722): eth6: Assoc 2C:AF:AE:55:D1:55, status: Successful (0), rssi:-46

wlceventd: wlceventd_proc_event(645): eth6: Deauth_ind 2C:AF:AE:55:D1:55, status: 0, reason: 4-way handshake timeout (f), rssi:-46

wlceventd: wlceventd_proc_event(645): eth6: Deauth_ind 2C:AF:AE:55:D1:55, status: 0, reason: 4-way handshake timeout (f), rssi:-46

I think it would be good idea to add a regex filter which would allow us to filter wlceventd messages. Idea is not to log those messages in the /jffs/syslog.log

Right now because of this, I have to set the Log Only messages more urgent than Notice which filters all the other notice messages. Yesterday I had an internet outage (https://www.snbforums.com/threads/router-suddenly-loose-internet.96504/#post-980616) and I could not find any useful log entries because of this notice filter. May be there was some notice message which would have indicated what happened.


1767378146569.png


I think its controlled by these two processes not sure though. May be another command line option is needed to this utility to the filter?

Code:
29174 root 3324 S    /sbin/syslogd -m 0 -S -O /jffs/syslog.log -s 1024 -l 5 -R X.Y.Z.A:514 -L -H RT86U
29176 root  3324 S    /sbin/klogd -c 5

I think this can be done via scribe too but I dont want to install Entware/Attach a USB drive to router. Want to keep things simple.

I am sure a lot of users would like to have something like this.
 
See this thread:

This floods the syslog and also causes lot of wear/tear of NAND.
Whilst annoying it doesn't really cause any particularly concerning "wear and tear" on the NAND because of the caching being used by the firmware.

I think it would be good idea to add a regex filter which would allow us to filter wlceventd messages. Idea is not to log those messages in the /jffs/syslog.log
As the following post notes, it doesn't reduce the logging to jffs only what's displayed in the webUI.
 
Last edited:
Such a filter would only limit what is displayed, not what is written to the syslog.log.
 
You're running merlin firmware so take a look at the scribe and uiScribe addons. You can split the syslog into seperate log files, so you could have a seperate logfile for wlceventd, which actually exists by default on first installation. You can even set a filter to just block certain messages, such as the long existing and heavily used dstentry.
 
Last edited:
I have a startup script that kills the wlceventd process at boot, it isn't necessary for wireless to function, its essentially troubleshooting/diagnostic information
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top