Ingest Virtual Private Cloud (VPC) logs

Updated at:

Ingest Virtual Private Cloud (VPC) flow logs into CloudMonitor 2.0 to audit network traffic, analyze security events, and troubleshoot issues. VPC flow logs capture traffic information for elastic network interfaces (ENIs) in VPC-connected instances.

Prerequisites

  • A Virtual Private Cloud (VPC) instance is created.

  • Simple Log Service (SLS) is activated.

  • Authorization for service-linked roles is complete:

    • AliyunVPCLogArchiveRole: This role writes VPC flow logs to SLS. If authorization is not granted, go to the VPC console to grant it.

    • AliyunServiceRoleForSLSAudit: This role enables SLS log collection.

  • If you use a RAM user for ingestion, grant the AliyunCloudMonitorFullAccess system policy.

Limits

  • VPC flow log ingestion is configured on a per-instance basis. Select a specific VPC instance to ingest its logs.

  • This feature is available only in the following regions: China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Germany (Frankfurt), UK (London), US (Virginia), US (Silicon Valley), UAE (Dubai), SAU (Riyadh - Partner Region), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), Japan (Tokyo), South Korea (Seoul), and China (Shanghai) Finance Cloud.

Billing Information

  • When you collect VPC flow logs, the flow log service is automatically activated.

  • Flow log costs include the flow log generation fee and the Simple Log Service fee. For more information, see VPC flow log billing.

Data ingestion

  1. Log on to the CloudMonitor 2.0 console, select the target workspace, and then in the left navigation pane, click Integration Center. Find and click the Virtual Private Cloud (VPC) Log card to start ingestion.

  2. Select the VPC-connected instance that you want to connect to, and in the connection configuration area, configure the following information:

    configuration item

    Description

    Ingestion Name

    Optional. A name for the ingestion configuration to help identify it in Provisioning.

    VPC Flow Log

    Enabled by default. When enabled, VPC flow logs are collected. The logs are saved to aliyun-product-data-{{userId}}-{{VPC_Region}}/vpc_log by default. The logs are written to the Logstore based on the AliyunVPCLogArchiveRole role.

  3. Click OK. After ingestion is complete, you can view the ingested entities and their related observable data in Entity Explorer.

Storage policy

After ingestion, CloudMonitor stores VPC flow logs in the corresponding SLS Logstore.

Data Type

Default Storage Location

Notes

Logs

  • SLS Project: aliyun-product-data-{{userId}}-{{regionId}}

  • SLS Logstore: vpc_log

Stored in the region where the VPC instance resides.

Note

VPC flow logs are written to the specified SLS Logstore through the VPC flow log service. If the corresponding Project or Logstore does not exist, the system automatically creates it.

Uninstall or modify an access policy

To cancel or modify a VPC connection, locate the corresponding provisioning policy on the Provisioning page in the Integration Center, and then click Edit or Delete.