syslog severity set
Set the log service severity threshold for events to be logged.
User Privileges
Users with the following privileges can perform this command:
>Admin
Syntax
syslog severity set -logname <logname> -loglevel <loglevel> [-host <hostname/IP>]
Argument(s) | Shortcut | Description |
---|---|---|
-loglevel <loglevel> | -logl |
Specifies the severity level of the log messages to include in the logs. Valid values:emergency,alert,critical/crit,error/err,warning/warn,notice,info,debug NOTE: These values are arranged from those which produce the fewest to the most log entries. Each level includes all the levels above it. For example, setting the log level to critical will gather all emergency, alert, and critical events. |
-logname <logname> | -logn | The name of the log file to which you want to apply severity levels. |
-host <hostname/IP> | -h | The remote host that will receive the logs. Add new hosts with syslog remotehost add. The hosts must be configured to receive logs. |
Example
lunash:>syslog severity set -logname lunalogs -loglevel crit This command sets the severity level of lunalogs local log messages. Only messages with the severity equal to or higher than the new log level: "crit" will be logged. Stopping syslog: [ OK ] Starting syslog: [ OK ] Command Result : 0 (Success)