Updated on 2024-02-28 GMT+08:00

Collecting Logs from VPC

LTS can collect logs from VPC.

This function is available only in regions AF-Johannesburg, AP-Singapore, CN-Hong Kong, CN East-Shanghai1, LA-Mexico City1, LA-Mexico City2, LA-Santiago, and LA-Sao Paulo1.

Procedure

Perform the following operations to configure VPC log ingestion:

  1. Log in to the LTS console.
  2. In the navigation pane on the left, choose Log Ingestion and and click VPC (Virtual Private Cloud).
  3. Select a log stream.

    1. Select a log group from the Log Group drop-down list. If there are no desired log groups, click Create Log Group to create one.
    2. Select a log stream from the Log Stream drop-down list. If there are no desired log streams, click Create Log Stream to create one.
    3. Click Next: Configure VPC.

  4. Configure VPC.

    Click Configure VPC.
    1. On the VPC console, choose VPC Flow Logs.
    2. On the VPC Flow Logs page, click Create VPC Flow Log and configure parameters.
    3. Click OK.

  5. Click Next: Configure Log Stream.

    Table 1 Log stream parameters

    Parameter

    Description

    Auto Structure and Index

    If is enabled, the log stream is automatically structured and indexed. The structuring is based on the VPC template, and the indexing enables quick analysis for all parsed VPC fields.

  6. Click Submit.