Updated on 2025-04-08 GMT+08:00

Log Collection

Why Are There Lost or Duplicate Logs?

  • Lost logs

    Cause 1: The log storage duration exceeds the LTS log storage duration.

    Description: CCI 2.0 collects application logs and reports them to LTS. Logs reported to LTS will be deleted in the early morning of the next day after the log storage duration expires. You can transfer logs to OBS buckets for long-term storage.

    Cause 2: The log file exists for less than 5 seconds.

    Description: CCI detects log files at an interval of 5 seconds. If the duration from the time when a log file is created to the time when it is deleted or renamed is less than 5 seconds, it may not be collected.

  • Duplicate logs

    Cause 1: The log file is dumped, and the dumped file is still matched.

    Description: If the file name of the configured log path contains a wildcard character, for example, /tmp/*.log, after the /tmp/test.log file is dumped to /tmp/test.001.log, it is still matched by the wildcard rule and is collected again as a new file.