Hi,
I ended up replacing :
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err
/var/log/messages
with
!-wg0
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err
/var/log/messages
!wg0
in /etc/syslog.conf and placing this:
# Log wgX messages
:msg, ereregex, "wg[0-9]{1,2}\:\ "
*.* /var/ramdisk_log/wireguard.log
in /etc/syslog.d/wireguard.conf (TnX Bob for pointing out the issues
with my previous attempts).
I'm probably filtering out too much information with the "!-wg0
construction" (regular, non-debug information regarding wgX interfaces
for instance) but at this point I'm satisfied with the construction.
Thank you for your feedback Miroslav / Bob!
Regards,
ruben