You can use more than one command to configure the severity level of the messages sent
to a target.
-
The most direct way to set the severity level of all the
sent messages is to use the following command:
configure log target [console | memory-buffer | nvram |primary-node |backup-node | session | syslog [all | ipaddress {udp-port {udp_port}} | ipPort | ipaddress
tls-port {tls_port} ] {vr
vr_name} {local0...local7 }] {severity
severity {only}}
When you specify a severity level, messages of that severity
level and greater are sent to the target. If you want only those
messages of the specified severity to be sent to the target, use
the keyword only. For example, specifying severity
warning will send warning, error, and critical messages
to the target, but specifying severity warning only sends only
warning messages.
-
You can also use the following command to configure severity
levels, which associate a filter with a target:
configure log target [console | memory-buffer | | primary-node | | backup-node | nvram | session | syslog [all | ipaddress {udp-port {udp_port}} | ipPort | ipaddress
tls-port {tls_port} ]{vr
vr_name} {local0...local7}] filter
filter-name {severity
severity {only}}
When you specify a severity level as you associate a
filter with a target, you further restrict the messages reaching
that target. The filter may allow only certain categories of messages
to pass. Only the messages that pass the filter and then pass the
specified severity level reach the target.
Finally, you can specify the severity levels of messages that reach the
target by associating a filter with a target. The filter can specify exactly which message
it will pass. Constructing a filter is described in Filtering By Components and Conditions.