You can configure the enabling of system log messages at a number of different levels in the JUNOS CLI. As shown in the following sample configurations, the choice of level depends on how specific you want the event logging to be and what options you want to include. For details on the configuration options, see the JUNOS System Basics Configuration Guide (system level) or the JUNOS Services Interfaces Configuration Guide (all other levels).
- user@host# show system syslog
- file messages {
- any any;
- }
- user@host# show interfaces sp-3/2/0
- services-options {
-
- syslog {
-
- host local {
- services any;
- }
- }
- open-timeout 3600;
- inactivity-timeout 3600;
- }
- unit 0 {
- family inet;
- }
- user@host# show services service-set svc_set
- syslog {
-
- host local {
- services any;
- }
- }
- stateful-firewall-rules allow_rtsp;
- interface-service {
- service-interface sp-3/2/0;
- }
- user@host# show services stateful-firewall
rule allow_rtsp
- match-direction input-output;
- term 0 {
-
- from {
- applications junos-rtsp;
- }
-
- then {
- accept;
- syslog;
- }
- }