Filter functions

The following functions may be used in the filter statement, as described in the previous chapter.

Table 3-9. Available filter functions in syslog-ng

NameSynopsisDescription
facilityfacility(faciliy[,facility])Match messages having one of the listed facility code.
level() or priority()level(pri[,pri1..pri2[,pri3]])Match messages based on priority.
program()program(regexp) Match messages by using a regular expression against the program name field of log messages
host()host(regexp) Match messages by using a regular expression against the hostname field of log messages.
match()Tries to match a regular expression to the message itself.
filter()Call another filter rule and evaluate its value