don't warn about every use of su
authorRalf Jung <post@ralfj.de>
Mon, 4 Nov 2019 15:56:59 +0000 (16:56 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 4 Nov 2019 15:56:59 +0000 (16:56 +0100)
roles/journalwatch/templates/patterns

index f925d46..a05fdd1 100644 (file)
@@ -56,7 +56,10 @@ Failed to set devices.allow on /system.slice/[a-z-]+.service: Operation not perm
 {% endif %}
 
 SYSLOG_IDENTIFIER = sudo
-\s*[_\w.-]+ : TTY=(unknown|console|(pts/|ttyp?|vc/)\d+) ; PWD=[^;]+ ; USER=[._\w-]+ ; COMMAND=.*
+\s*[._\w-]+ : TTY=(unknown|console|(pts/|ttyp?|vc/)\d+) ; PWD=[^;]+ ; USER=[._\w-]+ ; COMMAND=.*
+
+SYSLOG_IDENTIFIER = su
+\(to [._\w-]+\) [._\w-]+ on none
 
 _SYSTEMD_UNIT = postfix@-.service
 warning: hostname [^\s]+ does not resolve to address [\da-fA-F.:]+(: Name or service not known)?