261
Flow log configuration task list
Task at a glance
Configuring the flow log version
(Optional.) Specifying a source IP address for flow log packets
(Optional.) Enabling load balancing for flow log entries
(Optional.) Configuring the timestamp of flow logs
(Required.) Perform one of the following tasks for flow log export:
•
Specifying a log host as the flow log export destination
•
Specifying the information center as the flow log export destination
Configuration prerequisites
Before you configure the flow log feature, complete the following tasks:
•
Enable NAT logging by using the
nat log enable
command.
•
Enable the following NAT logging functions:
{
Logging of active NAT flows (
nat log flow-active
).
{
Logging of NAT session establishment events (
nat
log
flow-begin
).
{
Logging of NAT session removal events (
nat log flow-end
).
For more information about the NAT logging commands, see
Layer 3—IP Services Command Reference
.
Configuring the flow log version
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the flow log
version.
userlog flow export version
version-number
The default flow log version is 1.0.
Make sure the specified flow log
version is supported on the log
host.
If you configure the flow log
version multiple times, the most
recent configuration takes effect.
Specifying a source IP address for flow log packets
By default, the source IP address for flow log packets is the IP address of their outgoing interface. For the
log hosts to filter log entries by log sender, specify a source IP address for all flow log packets.