Updated on 2026-07-28 GMT+08:00

Viewing a VPC Flow Log

Scenarios

This section describes how you can view the VPC flow log details.

The capture window is approximately 10 minutes, which indicates that a flow log record will be generated every 10 minutes. After creating a VPC flow log, you need to wait about 10 minutes before you can view the flow log record.

If flow logs cannot be collected after the VPC flow log is enabled, the possible causes are as follows:
  • If an ECS is in the stopped status, its flow log records will not be displayed.
  • The VPC flow log quota is insufficient. If you want to continue collecting flow logs, configure the quota.

Procedure

  1. Go to the VPC flow log list page.
  2. Locate the target flow log and click View Log Record in the Operation column.

    The VPC flow log details page is displayed.

    • You can search for and view flow log information on the current page.
    • You can also click the log group hyperlink to go to the LTS console and search for and view flow log information.
  3. Enter key information, such as IP address, in the search box to quickly find the flow log to be viewed.
    The flow log record is in the following format:
    <version> <project-id> <interface-id> <srcaddr> <dstaddr> <srcport> <dstport> <protocol> <packets> <bytes> <start> <end> <action> <log-status>

    Currently, there are two versions of VPC flow logs (v1 and v2). Different versions support different fields. For details, see VPC Flow Log Data.

    Table 1 provides you with flow log examples.

    Table 1 Flow log examples

    Scenario

    Description

    A flow log with normal data records and accepted traffic

    The VPC flow log version is 1. During the 10 minutes from 11:37:19 to 11:47:19 on July 1, 2026, the network interface (c9bd7674-2c7a-45c5-b527-c431925578ce) accepted the following packets. A total of 594 echo request (type=8,code=0) packets were sent from the source IP address (192.168.0.110) to the destination IP address (10.10.12.122) using ICMP (protocol=1). The total size of all packets was 58,212 bytes. The flow log record status was normal (OK).
    1 6b32266bded64091a138e9ec19cff361 c9bd7674-2c7a-45c5-b527-c431925578ce 10.10.12.122 192.168.0.110 0 0 1 594 58212 1782877039 1782877639 ACCEPT OK

    A flow log with normal data records and rejected traffic

    The VPC flow log version is 1. During the 10 minutes from 11:27:16 to 11:37:16 on July 2, 2026, the network interface (d8c807c1-77b8-4d32-8c12-21b8a03dc0a2) rejected the following packets. A total of 546 echo request (type=8,code=0) packets were sent from the source IP address (192.168.1.3) to the destination IP address (192.168.0.102) using ICMP (protocol=1). The total size of all packets was 53,508 bytes. The flow log record status was normal (OK).
    1 6b32266bded64091a138e9ec19cff361 d8c807c1-77b8-4d32-8c12-21b8a03dc0a2 192.168.1.3 192.168.0.102 8 0 1 546 53508 1782962836 1782963436 REJECT OK

    A flow log with no data records

    1 5f67944957444bd6bb4fe3b367de8f3d 1d515d18-1b36-47dc-a983-bd6512aed4bd - - - - - - - 1431280876 1431280934 - NODATA

    A flow log with skipped data records

    1 5f67944957444bd6bb4fe3b367de8f3d 1d515d18-1b36-47dc-a983-bd6512aed4bd - - - - - - - 1431280876 1431280934 - SKIPDATA

You can enter a keyword on the log stream details page on the LTS console to search for flow log records.