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

Collecting Logs from ELB

LTS can collect logs from ELB.

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.

Prerequisites

You have created and used a load balancer.

Restrictions

ELB access logs only record requests sent to layer 7 dedicated and shared load balancers. Layer 4 shared load balancing is not logged.

Procedure

Perform the following operations to configure ELB log ingestion:

  1. Log in to the LTS console.
  2. In the left navigation pane, choose Log Ingestion. On the displayed page, click ELB (Elastic Load Balance).
  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 ELB.

  4. Configure ELB.

    Click Configure ELB.
    1. On the network console, choose Elastic Load Balance.
    2. On the Elastic Load Balance page, click the name/ID of the target load balancer to go to the details page.
    3. Click the Access Logs tab and click Configure Access Logging.
    4. Enable log collection, and select a log group and stream.

  5. Configure a log stream.

    Table 1 Log stream parameters

    Parameter

    Description

    Auto Structure and Index

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

  6. The operation is complete.