F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Configuration Guide-6PW100
94
218BDisplaying and maintaining user logging
Task Command
Remarks
Display the configuration and
statistics about user logging.
display userlog export [ | { begin |
exclude | include }
regular-expression ]
Available in any view.
Clear statistics about user logging. reset userlog flow export Available in user view.
Clear user logs in the cache. reset userlog flow logbuffer Available in user view.
219BUser logging configuration example
401BNetwork requirements
As shown in 808HFigure 34, configure user logging on the firewall so that the log server can monitor the user's
access to the network.
Figure 34 Network diagram
402BConfiguration procedure
# Configure IP addresses for the interfaces according to the network diagram. Make sure that the devices
can reach each other. (Details not shown.)
# Set the user logging version to 3.0.
<Firewall> system-view
[Firewall] userlog flow export version 3
# Export user logs to the log server with IP address 1.2.3.6:2000.
[Firewall] userlog flow export host 1.2.3.6 2000
# Configure the source IP address of UDP packets carrying user logs as 2.2.2.2.
[Firewall] userlog flow export source-ip 2.2.2.2
403BConfiguration verification
# Display the configuration and statistics about user logs.
<Firewall> display userlog export
flow: