Log all messages generated on the local routing platform at the error level or higher to the local0 facility on the remote machine called monitor.mycompany.com:
- [edit system syslog]
- host monitor.mycompany.com {
- any error;
- facility-override local0;
- }
Configure routing platforms located in California and routing platforms located in New York to send messages to a single remote machine called central-logger.mycompany.com. The messages from California are assigned alternative facility local0 and the messages from New York are assigned to alternative facility local2.
- [edit system syslog]
- host central-logger.mycompany.com {
- change-log info;
- facility-override local0;
- }
- [edit system syslog]
- host central-logger.mycompany.com {
- change-log info;
- facility-override local2;
- }
On central-logger, you can then configure
the system logging utility to write messages from the local0 facility to the file california-config and the messages from the local2 facility to the file new-york-config.