The log first-packet command enables the logging of the first packet that matches an ACL rule.
The undo log first-packet command disables the logging of the first packet that matches an ACL rule.
By default, the logging of the first packet that matches an ACL rule is disabled.
Usage Scenario
To detect the traffic that passes through the device, run the log first-packet command. When packets match an ACL, information about the first matching packet can be logged, including the name of the inbound/outbound interface, source IP address, destination IP address, protocol number, source port number, destination port number, time when the first packet is received (millisecond-level), and number of packets within the specified period.
Prerequisites
An unshared traffic policy has been configured.
You must execute the ip netstream sampler to slot self command to configure the sampling mode before configuring the log first-packet command.Precautions