Help Center/ Log Tank Service/ FAQs/ Log Management/ How Do I Save Only One Copy of Logs After Multi-Account Log Aggregation Is Configured?
Updated on 2024-11-07 GMT+08:00

How Do I Save Only One Copy of Logs After Multi-Account Log Aggregation Is Configured?

After Multi-Account Log Center is configured, logs in the source log group/stream will be aggregated to the target log group/stream, and LTS saves these logs in both accounts. When you create a source log group/stream and a target log group/stream, you set the log retention period. LTS retains logs based on this period. To save a copy of logs, perform the following operations.

Disabling Log Retention

  1. Log in to the LTS console using the account to which the source log group/stream belongs.
  2. On the Log Management page, locate the source log group/stream.
  3. Click in the Operation column of the source log stream. On the displayed page, disable Log Storage and Log Retention (Days).

    Figure 1 Modifying a log stream

  4. Click OK. After Log Storage is disabled, logs will not be stored to LTS. This saves on index traffic and storage costs, but disables log search, analysis, alarm, consumption, and processing. You will only be allowed to use metric generation and log transfer functions.