R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101

35
Exporting flow logs to a log server
Follow these steps to export flow logs to an IPv4 log server:
To do… Use the command…
Remarks
Enter system view system-view
Configure the IPv4 address and
UDP port number of the log server
userlog flow export host
ipv4-address udp-port
Required
Not configured by default.
NOTE:
You can select at most two lo
g
servers from three types of lo
g
servers to receive flow lo
g
s for each device.
If you specify two log servers for a device, the servers can be of the same type or of different types. If you
have already specified two servers, you need to delete an existing one to specify a new one. If in a new
configuration, the IP address is the same with that of the currently effective configuration, but other
information of the two configurations is different, then the new configuration will overwrite the previous
one.
Exporting flow logs to information center
Follow these steps to export flow logs to information center:
To do… Use the command…
Remarks
Enter system view system-view
Export flow logs to information
center
userlog flow syslog
Required
Flow logs are exported to the log
server by default.
NOTE:
Exporting flow logs to the information center takes up storage space of the device, so adopt this expor
t
approach when there are a small amount of logs.
When the flow logs are exported to the information center, the severity level of the logs is informational,
namely, general messages of the device.
Displaying and maintaining flow logging
To do… Use the command…
Remarks
Display the configuration and
statistics about flow logging
display userlog export Available in any view
Clear statistics about flow logging reset userlog flow export Available in user view
Clear flow logs in the cache reset userlog flow logbuffer Available in user view
CAUTION:
Clearin
g
flow lo
g
s in the cache causes the loss of lo
g
information, so you are recommended not to clear
the cache unless you are sure you want to clear it.
Flow logging configuration examples
1. Network requirements
As shown in Figure 12, L
og server is used to monitor User's access to the network.