3 |
- |
1 |
# Generic configuration items (to be used as interpolations) in other
|
|
|
2 |
# filters or actions configurations
|
|
|
3 |
#
|
|
|
4 |
|
|
|
5 |
[INCLUDES]
|
|
|
6 |
|
|
|
7 |
# Load customizations if any available
|
|
|
8 |
after = common.local
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
[DEFAULT]
|
|
|
12 |
|
|
|
13 |
# Daemon definition is to be specialized (if needed) in .conf file
|
|
|
14 |
_daemon = \S*
|
|
|
15 |
|
|
|
16 |
#
|
|
|
17 |
# Shortcuts for easier comprehension of the failregex
|
|
|
18 |
#
|
|
|
19 |
# PID.
|
|
|
20 |
# EXAMPLES: [123]
|
|
|
21 |
__pid_re = (?:\[\d+\])
|
|
|
22 |
|
|
|
23 |
# Daemon name (with optional source_file:line or whatever)
|
|
|
24 |
# EXAMPLES: pam_rhosts_auth, [sshd], pop(pam_unix)
|
|
|
25 |
__daemon_re = [\[\(]?%(_daemon)s(?:\(\S+\))?[\]\)]?:?
|
|
|
26 |
|
|
|
27 |
# extra daemon info
|
|
|
28 |
# EXAMPLE: [ID 800047 auth.info]
|
86 |
- |
29 |
__daemon_extra_re = \[ID \d+ \S+\]
|
3 |
- |
30 |
|
|
|
31 |
# Combinations of daemon name and PID
|
|
|
32 |
# EXAMPLES: sshd[31607], pop(pam_unix)[4920]
|
|
|
33 |
__daemon_combs_re = (?:%(__pid_re)s?:\s+%(__daemon_re)s|%(__daemon_re)s%(__pid_re)s?:?)
|
|
|
34 |
|
|
|
35 |
# Some messages have a kernel prefix with a timestamp
|
|
|
36 |
# EXAMPLES: kernel: [769570.846956]
|
6 |
- |
37 |
__kernel_prefix = kernel: \[ *\d+\.\d+\]
|
3 |
- |
38 |
|
|
|
39 |
__hostname = \S+
|
|
|
40 |
|
|
|
41 |
# A MD5 hex
|
|
|
42 |
# EXAMPLES: 07:06:27:55:b0:e3:0c:3c:5a:28:2d:7c:7e:4c:77:5f
|
|
|
43 |
__md5hex = (?:[\da-f]{2}:){15}[\da-f]{2}
|
|
|
44 |
|
|
|
45 |
# bsdverbose is where syslogd is started with -v or -vv and results in <4.3> or
|
|
|
46 |
# <auth.info> appearing before the host as per testcases/files/logs/bsd/*.
|
86 |
- |
47 |
__bsd_syslog_verbose = <[^.]+\.[^.]+>
|
3 |
- |
48 |
|
86 |
- |
49 |
__vserver = @vserver_\S+
|
|
|
50 |
|
|
|
51 |
__date_ambit = (?:\[\])
|
|
|
52 |
|
3 |
- |
53 |
# Common line prefixes (beginnings) which could be used in filters
|
|
|
54 |
#
|
|
|
55 |
# [bsdverbose]? [hostname] [vserver tag] daemon_id spaces
|
|
|
56 |
#
|
|
|
57 |
# This can be optional (for instance if we match named native log files)
|
86 |
- |
58 |
__prefix_line = %(__date_ambit)s?\s*(?:%(__bsd_syslog_verbose)s\s+)?(?:%(__hostname)s\s+)?(?:%(__kernel_prefix)s\s+)?(?:%(__vserver)s\s+)?(?:%(__daemon_combs_re)s\s+)?(?:%(__daemon_extra_re)s\s+)?
|
3 |
- |
59 |
|
33 |
- |
60 |
# PAM authentication mechanism check for failures, e.g.: pam_unix, pam_sss,
|
|
|
61 |
# pam_ldap
|
|
|
62 |
__pam_auth = pam_unix
|
|
|
63 |
|
3 |
- |
64 |
# Author: Yaroslav Halchenko
|