Configuring the Syslog Server for Compute Nodes
The syslog server configured on the router running Junos OS is used to received the log messages generated in compute nodes and virtual machines. Therefore, all the messages are logged at one place.
In a router running Junos OS, to enable syslog server in a default routing instance:
- Use the CLI set command:[edit system]user@host# set syslog server
To send the log messages to the router from the compute node or virtual machine (VM):
- In the
/etc/syslog.conf file
of the compute node or VM, manually add the following:facility.priority@ip-address
where
- facility is a variable that can be one of several options listed in the man
page of
syslog.conf
. - priority is a variable that can be one of several options listed in the man
page of
syslog.conf
. - ip-address is the IP address of the management interface of the router.
Using this configuration, you can control the level of syslog messages visible in the router.
- facility is a variable that can be one of several options listed in the man
page of
Here are some examples:
example 1:
To send critical kernel log messages to a router running Junos
OS (with management interface 1.1.1.2), add the following entry to syslog.conf
:
kern.crit @1.1.1.2
example 2:
To send all log messages (any facility and any priority) to
a router running Junos OS, add the following entry to syslog.conf
:
*.* @1.1.1.2