Browse Source

ENH: separate out regex and escape a .

pull/204/head
Daniel Black 12 years ago
parent
commit
de56347619
  1. 5
      config/filter.d/common.conf

5
config/filter.d/common.conf

@ -38,6 +38,9 @@ __kernel_prefix = kernel: \[\d+\.\d+\]
__hostname = \S+ __hostname = \S+
__bsd_syslog_verbose = (<[^.]+\.[^.]+>)
# #
# Common line prefixes (beginnings) which could be used in filters # Common line prefixes (beginnings) which could be used in filters
# #
@ -47,4 +50,4 @@ __hostname = \S+
# <auth.info> appearing before the host as per testcases/files/logs/bsd/*. # <auth.info> appearing before the host as per testcases/files/logs/bsd/*.
# #
# This can be optional (for instance if we match named native log files) # This can be optional (for instance if we match named native log files)
__prefix_line = \s*(<[^.]+.[^.]+>)?\s*(?:%(__hostname)s )?(?:%(__kernel_prefix)s )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s* __prefix_line = \s*%(__bsd_syslog_verbose)s?\s*(?:%(__hostname)s )?(?:%(__kernel_prefix)s )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s*

Loading…
Cancel
Save