If you have a programm that is constantly writing to /var/log/daemon.log you can prevent it like this.
Example of log message:
Mar 4 13:23:54 serverhostname annoyingprogramm[596417]: 2022/03/04 13:23:54 Found connection for client
Make a new file in /etc/rsyslog.d/annoyingprogramm.conf containing this:
:programname, contains, "annoyingprogramm" stop
Restart rsyslog
systemctl restart rsyslog.service