490
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.
Usage guidelines
The
info-center loghost
command takes effect only after the information center is enabled by using
info-center enable
command.
The device supports a maximum of four log hosts.
Examples
# Output logs to the log host 1.1.1.1.
<Sysname> system-view
[Sysname] info-center loghost 1.1.1.1
info-center loghost source
Use
info-center loghost source
to specify a source IP address for logs sent to log hosts.
Use
undo info-center loghost source
to restore the default.
Syntax
info-center loghost source
interface-type interface-number
undo info-center loghost source
Default
The source IP address of logs sent to log hosts is the primary IP address of their outgoing interfaces.
Views
System view
Predefined user roles
network-admin
Parameters
interface-type interface-number
: Specifies a source interface. The interface's primary IP address will
be used as the source IP address for logs sent to log hosts.
Usage guidelines
The
info-center loghost source
command takes effect only after the information center is enabled
by using
info-center enable
command.
Examples
# Specify Loopback 0 as the source interface for logs sent to log hosts.
<Sysname> system-view
[Sysname] interface loopback 0