[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]
System Log
Configuration
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).
- At the topmost global level:
- user@host# show system syslog
- file messages {
- any any;
- }
- At the AS PIC level:
- 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;
- }
- At the service set level:
- 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;
- }
- At the service rule level:
- user@host# show services stateful-firewall
rule allow_rtsp
- match-direction input-output;
- term 0 {
-
- from {
- applications junos-rtsp;
- }
-
- then {
- accept;
- syslog;
- }
- }
[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]