Configure System Log Properties
You specify properties that control how system log messages are generated for the service set. These values override the values configured at the [
edit interfacesinterface-namesp-options] hierarchy level.To configure service-set-specific system logging values, include the
syslogstatement at the [edit services service-setservice-set-name] hierarchy level:[edit services service-set service-set-name]syslog {hosthostname{servicesseverity-level;facility-overridefacility-name;log-prefixprefix-number;}}Configure the
hoststatement with a hostname that specifies the system log target server. The hostnamelocaldirects system log messages to the Routing Engine. The hostname must be included ininet.0. You can specify only one system log host.Table 9 lists the severity levels that you can specify in configuration statements at the [edit services service-set service-set-name
syslog hosthostname]hierarchy level. The levels fromemergencythroughinfoare in order from highest severity (greatest effect on functioning) to lowest.
Table 9: System Log Message Severity Levels
We recommend setting the system logging severity level to
errorduring normal operation. To monitor PIC resource usage, set the level towarning. To gather information about an intrusion attack when an intrusion detection system error is detected, set the level tonoticefor a specific service set. To debug a configuration or log NAT functionality, set the level toinfo.For more information about system log messages, see the JUNOS System Log Messages Reference.
To use one particular facility code for all logging to the specified system log host, include the
facility-overridestatement at the [edit services service-setservice-set-namesysloghosthostname] hierarchy level:[edit services service-set service-set-name sysloghosthostname]facility-overridefacility-name;The supported facilities are:
authorization,daemon,ftp,kernel,user, andlocal0throughlocal7.To specify an address prefix for all logging to this system log host, include the
log-prefixstatement at the [edit services service-setservice-set-namesysloghosthostname] hierarchy level:[edit services service-set service-set-name sysloghosthostname]log-prefixprefix-number;