Configure Operation Log Output to Log Host
Configuration Condition
You need to configure the log output to the host first.
Configure Operation Log Output to Log Server
After configuring the operation log output to the log server, you can query the operation log of the user on the log server.
Table 9–10 Configure the operation log output to the log host
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enable the log output function
|
logging enable
|
Optional
By default, the log output function is enabled.
|
Configure the log host
|
logging server server-name [ vrf vrf-name ] { ip ip-address | ipv6 ipv6-address | hostname host-name } [ port port-num ] [ facility facility-name ] [level severity]
|
Mandatory
By default, the function of sending the log information to the log server is not enabled.
|
Configure the operation log sent to the log server
|
logging operation to-server
|
Mandatory
By default, the function of sending the operation log to the log server is not enabled.
|