Service manual
Appendix G Generating Alarm and Syslog 158
Cyclades-TS Installation & Service Manual
The following internals functions are available:
a) facility(<facility code>):
- selects messages based on their facility code.
b) level(<level code>) or priority(<level code>):
- selects messages based on their priority
c) program(<string>):
- tries to match the <string> to the program name field of the log message
d) host(<string>):
- tries to match the <string> to the hostname field of the log message
e) match(<string>):
- tries to match the <string> to the message itself.
Some examples:
1. To filter by facility: filter f_facilty { facility(<facility name>); };
Examples:
filter f_daemon { facility(daemon); };
filter f_kern { facility(kern); };
filter f_debug { not facility(auth, authpriv, news, mail); };
2. To filter by level: filter f_level { level(<level name>);};
Examples:
filter f_messages { level(info..warn);};
filter f_emergency { level(emerg); };