1 # In this file, patterns for journalwatch are defined to blacklist all journal
2 # messages which are not errors.
4 # Lines starting with '#' are comments. Inline-comments are not permitted.
6 # The patterns are separated into blocks delimited by empty lines. Each block
7 # matches on a log entry field, and the patterns in that block then are matched
8 # against all messages with a matching log entry field.
10 # The syntax of a block looks like this:
17 # If <value> starts and ends with a slash, it is interpreted as a regular
18 # expression, if not, it's an exact match. Patterns are always regular
21 # Below are some useful examples. If you have a small set of users, you might
22 # want to adjust things like "user \w" to something like "user (root|foo|bar)".
24 # The regular expressions are extended Python regular expressions, for details
27 # https://docs.python.org/3.4/library/re.html#regular-expression-syntax
28 # https://docs.python.org/3.4/howto/regex.html
29 # http://doc.pyschools.com/html/regex.html
31 # The journal fields are explained in systemd.journal-fields(7).
33 _SYSTEMD_UNIT = systemd-logind.service
34 New session [a-z]?\d+ of user \w+\.
35 Removed session [a-z]?\d+\.
37 SYSLOG_IDENTIFIER = /(CROND|crond)/
38 pam_unix\(crond:session\): session (opened|closed) for user \w+
41 SYSLOG_IDENTIFIER = systemd
42 (Stopped|Stopping|Starting|Started) .*
43 (Created slice|Removed slice) user-\d+\.slice\.
44 Received SIGRTMIN\+24 from PID .*
45 (Reached target|Stopped target) .*
46 Startup finished in \d+ms\.
47 {% if journalwatch is defined and journalwatch.strato_broken | default(False) %}
48 Failed to create /user.slice/user-\d+.slice/user@\d+.service/init.scope control group: Permission denied
49 Failed to allocate manager object: Permission denied
52 _SYSTEMD_UNIT = init.scope
53 user@\d+\.service: Killing process \d+ \(kill\) with signal SIGKILL\.
54 [^: ]+: Consumed [\d.]+s CPU time\.
55 {% if journalwatch is defined and journalwatch.strato_broken | default(False) %}
56 Failed to set devices.allow on /system.slice/[a-z-]+.service: Operation not permitted
59 SYSLOG_IDENTIFIER = sudo
60 \s*[._\w-]+ : (TTY=(unknown|console|(pts/|ttyp?|vc/)\d+) ; )?PWD=[^;]+ ; USER=[._\w-]+ ; COMMAND=.*
62 SYSLOG_IDENTIFIER = su
63 \(to [._\w-]+\) [._\w-]+ on none
65 _SYSTEMD_UNIT = postfix@-.service
66 warning: hostname [\w._-]+ does not resolve to address [\da-fA-F.:]+(: .*)?
67 warning: [._\w-]+\[[\da-fA-F.:]+\]: SASL (LOGIN|PLAIN) authentication failed:.*
68 warning: non-SMTP command from [._\w-]+\[[\da-fA-F.:]+\]: .*
69 warning: TLS library problem: error:[0-9A-F]+:SSL routines:\w+:(no shared cipher|decryption failed or bad record mac|unknown protocol|version too low):[\w./]+:\d+:
70 warning: dnsblog reply timeout \d+s for .*
71 warning: dnsblog_query: lookup error for DNS query .*: Host or domain name not found. Name service error .*
72 warning: ciphertext read/write timeout for \[[\da-fA-F.:]+\]:\d+
73 {% if journalwatch is defined and journalwatch.postfix_slow | default(False) %}
74 warning: psc_cache_update: btree:/var/lib/postfix/[a-z_]+ (update|lookup) average delay is \d\d\d ms
76 {% if journalwatch is defined and journalwatch.strato_broken | default(False) %}
77 warning: dnsblog reply timeout [0-9]+s for [\w._-]+
78 warning: dnsblog_query: lookup error for DNS query .*
81 _SYSTEMD_UNIT = dovecot.service
82 auth: Warning: auth client \d+ disconnected with \d+ pending requests: (EOF|Connection reset by peer)
83 auth: Warning: Event 0x[\da-fA-F]+ leaked \(parent=\(nil\)\): auth-client-connection.c:\d+
85 SYSLOG_IDENTIFIER = sshd
86 error: Received disconnect from [\da-fA-F.:]+ port \d+:\d+: .*
87 error: maximum authentication attempts exceeded for (invalid user \w*|\w+) from [\da-fA-F.:]+ port \d+ ssh2 \[preauth\]
88 fatal: ssh_packet_get_string: string is too large \[preauth\]
89 error: (kex_exchange_identification|send_error|kex protocol error|Bad remote protocol version identification|Protocol major versions differ|beginning MaxStartups throttling).*
91 _SYSTEMD_UNIT = named.service
92 client (@0x[a-f0-9]+ )?[\da-fA-F.:]+#\d+( \([\w.-]+\))?: (zone transfer '[\w.-]+/AXFR/IN' denied|message parsing failed: (bad compression pointer|bad label type|unexpected end of input))
94 _SYSTEMD_UNIT = opendkim.service
95 [A-Z0-9]+: (bad signature data|failed to parse [Aa]uthentication-[Rr]esults: header field)
96 [A-Z0-9]+: key retrieval failed \(s=[\w._-]+, d=[\w._-]+\)(: '[\w._-]+' record not found)?
98 _SYSTEMD_SLICE=system-openvpn.slice
99 (client/)?[0-9a-f.:]+ (peer info: .*|VERIFY OK: .*|Outgoing Data Channel: .*|Incoming Data Channel: .*|Control Channel: .*|TLS: .*|\[client\] .*|MULTI(_sva)?: .*|SIGUSR1.*|PUSH: .*|SENT CONTROL \[client\]: .*|WARNING: '(tun|link)-mtu' is used inconsistently, local='(tun|link)-mtu \d+', remote='(tun|link)-mtu \d+')