Hi,
I have an old PC that serves an office with several functionalities. Among those that pc is a wifi WAP sharing the ethernet connection. So I configured with NetworkManager a shared connection over wifi.
The problem is that the it does have an old SSD drive with only 256GB of space. So I had to “deactivate” several system logs since the space available is constrained.
One of the things I needed to stop was the logs of the wifi access since it is actually a lot of logs daily.
So I looked around the net and started to try and stop logs on the config files of dnsmasq. Specifically dnsmasq-dhcp always showed a lot on rsyslog files (/var/log/messages) due to the many accesses.
I tried all NetworkManager and dnsmasq configuration parameters to stop logging. Nothing worked.
So the only thing that actually worked was to use a filter for a service on rsyslog.
So I created a /etc/rsyslog.d/ file named nm_logs.frule with simply:
if $programname == "dnsmasq-dhcp" then stop
The main config file for rsyslog in /etc imports all *.conf and *.frule files.
That stopped all logs from the wifi access.
I write this on the forum for a simple reason: With AI search one totally looses any reference to online sources.
I think the right thing to do right now is to come to this forum and share with others both problem and ask for help, or in case of success, write in here for future reference (link/url ) for all to see and even for my own future reference.
Hope this helps.