Lines 1-17
Link Here
|
1 |
--- config/filter.d/common.conf.orig 2011-05-25 14:25:33.000000000 +0100 |
1 |
--- config/filter.d/common.conf.orig 2012-01-20 22:50:22.000000000 +0100 |
2 |
+++ config/filter.d/common.conf 2011-05-25 14:25:42.000000000 +0100 |
2 |
+++ config/filter.d/common.conf 2012-01-20 23:10:52.000000000 +0100 |
3 |
@@ -32,10 +32,13 @@ |
3 |
@@ -32,6 +32,9 @@ |
4 |
# EXAMPLES: sshd[31607], pop(pam_unix)[4920] |
4 |
# EXAMPLES: sshd[31607], pop(pam_unix)[4920] |
5 |
__daemon_combs_re = (?:%(__pid_re)s?:\s+%(__daemon_re)s|%(__daemon_re)s%(__pid_re)s?:) |
5 |
__daemon_combs_re = (?:%(__pid_re)s?:\s+%(__daemon_re)s|%(__daemon_re)s%(__pid_re)s?:) |
6 |
|
6 |
|
7 |
+# Logging facility and priority for BSD "-v" verbose mode |
7 |
+# Logging facility and priority for BSD "-v" verbose mode |
8 |
+__bsd_verbose_mode = (?:\s*\<\S+\.\S+\>\s*) |
8 |
+__bsd_verbose_mode = (?:\s*\<\S+\.\S+\>\s*) |
9 |
+ |
9 |
+ |
10 |
# |
10 |
# Some messages have a kernel prefix with a timestamp |
11 |
# Common line prefixes (beginnings) which could be used in filters |
11 |
# EXAMPLES: kernel: [769570.846956] |
|
|
12 |
__kernel_prefix = kernel: \[\d+\.\d+\] |
13 |
@@ -43,5 +46,5 @@ |
12 |
# |
14 |
# |
13 |
# [hostname] [vserver tag] daemon_id spaces |
15 |
# [hostname] [vserver tag] daemon_id spaces |
14 |
# this can be optional (for instance if we match named native log files) |
16 |
# this can be optional (for instance if we match named native log files) |
15 |
-__prefix_line = \s*(?:\S+ )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s* |
17 |
-__prefix_line = \s*(?:%(__hostname)s )?(?:%(__kernel_prefix)s )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s* |
16 |
+__prefix_line = \s*%(__bsd_verbose_mode)s?(?:\S+ )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s* |
18 |
+__prefix_line = \s*%(__bsd_verbose_mode)s?(?:\S+ )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s* |