Filter specific log message

Hi,
my log is getting spammed with messages like this:
Thu Sep 17 21:00:57 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 static
Thu Sep 17 21:00:57 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 off
Thu Sep 17 21:00:58 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 static
Thu Sep 17 21:00:58 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 off
Thu Sep 17 21:00:58 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 static
Thu Sep 17 21:00:58 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 off
Thu Sep 17 21:01:00 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 static
Thu Sep 17 21:01:00 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 off
Thu Sep 17 21:01:00 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 static
Thu Sep 17 21:01:01 2020 daemon.notice hostapd: wlan0: STA-OPMODE-SMPS-MODE-CHANGED xx:32:xx:2a:xx:c7 off

I think it is caused by a phone with lineageos installed, but there is nothing I can do on the phone to stop this behaviour.

Is there any way to filter/disable this one specific message in the log, so it does not spam the log and overwrite everything else that is useful in the default syslog ring buffer?

Thanks :slight_smile:

1 Like

You should install rsyslog (https://openwrt.org/docs/guide-user/base-system/log.essentials#rsyslog_and_logzio): https://www.thegeekdiary.com/etc-rsyslog-conf-setup-a-filter-to-discard-or-redirect-messages/

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.