Related Documentation
- M Series
- Junos OS System Log Alternate Facilities for Remote Logging
- MX Series
- Junos OS System Log Alternate Facilities for Remote Logging
- PTX Series
- Junos OS System Log Alternate Facilities for Remote Logging
- QFX Series
- Junos OS System Log Alternate Facilities for Remote Logging
- T Series
- Junos OS System Log Alternate Facilities for Remote Logging
Examples: Assigning an Alternative Facility
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.
- Configure California routing platforms to aggregate messages
in the local0 facility:
[edit system syslog] host central-logger.mycompany.com { change-log info; facility-override local0; } - Configure New York routing platforms to aggregate messages
in the local2 facility:
[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.
Related Documentation
- M Series
- Junos OS System Log Alternate Facilities for Remote Logging
- MX Series
- Junos OS System Log Alternate Facilities for Remote Logging
- PTX Series
- Junos OS System Log Alternate Facilities for Remote Logging
- QFX Series
- Junos OS System Log Alternate Facilities for Remote Logging
- T Series
- Junos OS System Log Alternate Facilities for Remote Logging

