2007-09-12 21:38:51 +00:00
|
|
|
# Generic configuration items (to be used as interpolations) in other
|
|
|
|
# filters or actions configurations
|
|
|
|
#
|
|
|
|
# Author: Yaroslav Halchenko
|
|
|
|
#
|
2009-02-08 17:31:24 +00:00
|
|
|
# $Revision$
|
2007-09-12 21:38:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
# Load customizations if any available
|
2008-03-04 00:17:56 +00:00
|
|
|
after = common.local
|
2007-09-12 21:38:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
|
|
|
|
# Daemon definition is to be specialized (if needed) in .conf file
|
|
|
|
_daemon = \S*
|
|
|
|
|
|
|
|
#
|
|
|
|
# Shortcuts for easier comprehension of the failregex
|
|
|
|
#
|
|
|
|
# PID.
|
|
|
|
# EXAMPLES: [123]
|
|
|
|
__pid_re = (?:\[\d+\])
|
|
|
|
|
|
|
|
# Daemon name (with optional source_file:line or whatever)
|
|
|
|
# EXAMPLES: pam_rhosts_auth, [sshd], pop(pam_unix)
|
|
|
|
__daemon_re = [\[\(]?%(_daemon)s(?:\(\S+\))?[\]\)]?:?
|
|
|
|
|
|
|
|
# Combinations of daemon name and PID
|
|
|
|
# EXAMPLES: sshd[31607], pop(pam_unix)[4920]
|
|
|
|
__daemon_combs_re = (?:%(__pid_re)s?:\s+%(__daemon_re)s|%(__daemon_re)s%(__pid_re)s?:)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Common line prefixes (beginnings) which could be used in filters
|
|
|
|
#
|
|
|
|
# [hostname] [vserver tag] daemon_id spaces
|
|
|
|
# this can be optional (for instance if we match named native log files)
|
|
|
|
__prefix_line = \s*(?:\S+ )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s*
|
|
|
|
|