log destination
Configures the logging of system messages. You can direct messages to a destination, limit the messages logged based on severity level, or limit the event categories for which messages are logged. The no versions restore default settings or reverse the effect of previous commands that limited event categories.
To specify the destination and severity of messages logged:
log destination { console | nv-file | syslog ipAddress [ facility facilityId ] }
{ severity { severityValue | severityNumber } | off }no log destination [ console | nv-file | syslog [ ipAddress ] ]
To specify which event categories are logged to syslog:
log destination syslog ipAddress { include | exclude } category [ category ]*
no log destination syslog ipAddress { include | exclude } [ category ]*
- consoleConfigures or modifies logging to the local console
- nv-fileConfigures or modifies logging to the nonvolatile log file; the nv-file can accept only events at a severity level of critical or higher in importance
- syslogConfigures or modifies logging to a system log server
- ipAddressIP address of the system log application on a remote host
- facilitySpecifies the system log facility on the host
- facilityIdNumber in the range 07 that identifies the corresponding logging facility, local0local7
- severitySets minimum severity of the log messages displayed; described either by a descriptive termseverityValueor by a corresponding numberseverityNumberin the range 07. The lower the number, the higher the priority:
- emergency or 0System unusable
- alert or 1Immediate action needed
- critical or 2Critical condition exists
- error or 3Error condition
- warning or 4Warning condition
- notice or 5Normal but significant condition
- info or 6Informational message
- debug or 7Debug message
- offDisables logging to this destination
- includeSends only the specified event categories to the system log server
- excludeSends all event categories except those specified to the system log server
Issuing an include command after an exclude command (or vice versa) overrides the earlier command.
You can issue successive include commands or successive exclude commands. Successive commands expand the list of included or excluded categories.
- categoryLog category; refer to the CLI online Help for available options
- *Indicates that one or more parameters can be repeated multiple times in a list in the command line
Global Configuration
Release Information Command introduced before JUNOSe Release 7.1.0.