ON THIS PAGE
Logging and Notifications
Logging
The Juniper Cloud-Native Router pods and containers use syslog as their logging mechanism. You can determine the location of the log files at the deployment time by retaining or changing the value of the log_path key in the values.yaml file. By default, the location of the log files is /var/log/jcnr. The system stores log files from all the cloud-native router pods and containers in the log_path directory.
In addition, a syslog-ng pod stores event notification data in JSON format on the host server. The syslog-ng pod stores the JSON-formatted notifications in the directory specified by the syslog_notifications key in the values.yaml file. By default, the file location is /var/log/jcnr and the filename is jcnr_notifications.json. You can change the location and filename by changing the value of the syslog_notifications key before the cloud-native router deployment.
When you use the default file locations, the /var/log/jcnr directory displays the following files:
[root@jcnr-01 jcnr]# ls action.log contrail-vrouter-dpdk-init.log filter l2cos.log __policy_names_rpdc__ contrail-vrouter-agent.log contrail-vrouter-dpdk.log filter.log license mgd-api __policy_names_rpdn__ cos jcnr-cni.log messages mosquitto vrouter-kernel-init.log cscript.log jcnr_notifications.json messages.0.gz na-grpcd
Notifications
The syslog-ng pod continuously monitors the preceding log files for notification events such as interface up, interface down, interface add, and so on. When these events appear in a log file, syslog-ng converts the log events into notification events and stores the events in JSON format within the syslog_notifications file configured in the values.yaml file.Here is a sample of syslog-ng notifications:
Notification | Source Pod |
---|---|
License Near Expiry |
cRPD |
License Expired |
cRPD |
License Invalid |
cRPD |
License OK |
cRPD |
License Grace Period | cRPD |
License Not Present | cRPD |
Cloud-Native Router Init Success |
Deployer |
Cloud-Native Router Init Failure |
Deployer |
Cloud-Native Router Graceful Shutdown Request | Deployer |
Cloud-Native Router Graceful Shutdown Complete | Deployer |
Cloud-Native Router Graceful Shutdown Failure | Deployer |
Cloud-Native Router Restart | Deployer |
Cloud-Native Router Upgrade Success | Deployer |
Cloud-Native Router Upgrade Failure | Deployer |
Upstream Fabric Bond Member Link Up |
vRouter |
Upstream Fabric Bond Member Link Down |
vRouter |
Upstream Fabric Bond Link Up |
vRouter |
Upstream Fabric Bond Link Down |
vRouter |
Upstream Fabric Bond Link Switchover | vRouter |
Downstream Fabric Link Up |
vRouter |
Downstream Fabric Link Down |
vRouter |
Appliance Link Up |
vRouter |
Appliance Link Down |
vRouter |
Any Cloud-Native Router Application Critical Errors |
vRouter |
Any Cloud-Native Router Application Warnings | vRouter |
Any Cloud-Native Router Application Info | vRouter |
Cloud-Native Router Rate Limits Reached | vRouter |
Cloud-Native Router MAC Table Limit Reached |
vRouter |
Cloud-Native Router CLI Start |
cRPD or vRouter-Agent |
Cloud-Native Router CLI Stop |
cRPD or vRouter-Agent |
Cloud-Native Router Kernel App Interface Up |
vRouter |
Cloud-Native Router Kernel App Interface Down |
vRouter |
Cloud-Native Router Virtio User Interface Up |
vRouter |
Cloud-Native Router Virtio User Interface Down |
vRouter |