Usage guidelines
You can configure log suppression rules to filter out the logs that you are not concerned with. A log
suppression rule suppresses output of all logs or only logs with a specific mnemonic value for a
module.
Examples
# Configure a log suppression rule to suppress output of logs with the shell_login mnemonic value
for the shell module.
<Sysname> system-view
[Sysname] info-center logging suppress module shell mnemonic shell_login
Related commands
info-center source
info-center loghost
Use info-center loghost to specify a log host and to configure output parameters.
Use undo info-center loghost to remove a log host.
Syntax
info-center loghost [ vpn-instance vpn-instance-name ] { hostname | ipv4-address | ipv6
ipv6-address } [ port port-number ] [ facility local-number ]
undo info-center loghost [ vpn-instance vpn-instance-name ] { hostname | ipv4-address | ipv6
ipv6-address }
Default
No log hosts are specified.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a
case-sensitive string of 1 to 31 characters. If the log host is on the public network, do not specify this
option.
hostname: Specifies a log host by its name, a case-insensitive string of 1 to 253 characters. The host
name can contain letters, digits, and special characters including hyphen (-), underscore (_), and dot
(.).
ipv4-address: Specifies a log host by its IPv4 address.
ipv6 ipv6-address: Specifies a log host by its IPv6 address.
port port-number: Specifies the port number of the log host, in the range of 1 to 65535. The default is
514. It must be the same as the value configured on the log host. Otherwise, logs cannot be sent to
the log host.
facility local-number: Specifies a logging facility from local0 to local7 for the log host. The default
value is local7. Logging facilities are used to mark different logging sources, and query and filer logs.
394