The following functions may be used in the filter statement, as described in the previous chapter.
Table 3-14. Available filter functions in syslog-ng
Name | Synopsis | Description |
---|---|---|
facility | facility(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() | match(regexp) | Tries to match a regular expression to the message itself. |
filter() | filter(filtername) | Call another filter rule and evaluate its value |
netmask() | netmask(ip/mask) | Check the sender's IP address whether it is in the specified IP subnet |