Service manual

Appendix G Generating Alarm and Syslog 164
Cyclades-TS Installation & Service Manual
destination d_user { usertty(<username>); };
Example to send message to all sessions with root user logged:
destination d_userroot { usertty(root); };
6. To send message to remote syslogd server:
destination d_udp { udp( <remote IP address> port(514)); };
Example to send syslogs to syslogd located at 10.0.0.1:
destination d_udp1 { udp( 10.0.0.1 port(514)); };
To connect the sources, filters and actions (any message coming from one of the listed sources, matching
the filters (each of them) is sent to the listed destinations). Use this statement:
log { source(S1); source(S2); ...
filter(F1);filter(F2);...
destination(D1); destination(D2);...
};
where: Sx - identifier of the sources defined before
Fx - identifier of the filters defined before
Dx - identifier of the actions/destinations defined before
Examples:
1. To send all messages received from local syslog clients to console
log { source(sysl); destination(d_console);};
2. To send only messages with level alert and received from local syslog clients to all logged root user:
log { source(sysl); filter(f_alert); destination(d_userroot); };
3. To writes all messages with levels info, notice or warning and received from syslog clients (local and
remotes) to /var/log/messages file: