Filters

Filters perform log routing inside syslog-ng. You can write a boolean expression using internal functions, which has to evaluate to true for the message to pass.

Filters have also a uniquely identifying name, so you can refer to filters in your log statements. Syntax for a filter statement:
	  filter <identifier> { expression; };
	
An expression may contain the operators "and", "or" and "not", and any of the functions listed in the reference chapter.