There are answers that suggest changing this:
*.*;auth,authpriv.none -/var/log/syslog
#cron.* -/var/log/cron.log
Into this:
*.*;cron,auth,authpriv.none -/var/log/syslog
cron.* -/var/log/cron.log
This works, but it needs editing first line in rather precise manner, making complications when you want to automate configuration.
Yes, it is doable using sed or Salt file.replace state, but I would like to implement by appending/prepending rsyslog.conf file, or even better - by creating /etc/rsyslog.d/(00|99)-my-cron-log.conf
to make it more robust and distribution-agnostic, though I do not follow rsyslog.conf configuration logic enough to make it working. I can't get "CRON" lines removed from syslog.log, except when using example above.
Is it even possible to disable cron to log into syslog.log without modifying package maintainer config lines?