Log Management

CCI allows you to mount a log storage volume for log collection. To write logs to the log storage volume, you only need to add the log storage volume when you create a workload.

CCI is interconnected with Application Operations Management (AOM). AOM collects the .log files in container log storage and dumps them in AOM.

You can click View Logs in the Pod List area on the details page of a workload to view logs.
Figure 1 Viewing logs

Adding a Log Storage Volume

You can add a log storage volume for a container when you create a workload.

  • Container Log Path: path to which the log storage volume is attached. Ensure that it matches the log output path of the application so that logs can be written to the log storage volume.
    • Ensure that the container path to be mounted is a new path. If an existing path is mounted, the data in it will be cleared.
    • Currently, CCI supports .log, .trace, and .out log files.
    • A maximum of 20 log files can be retained in the log path. Your logs will be recorded in these 20 files.
    • AOM scans log files in the log path every minute. When a log file exceeds 50 MB, AOM dumps it immediately (that is, AOM generates a .zip file in the log path) and clears the original log file. The latest 20 .zip files will be retained for a log file. When the number of .zip files exceeds 20, AOM will delete earlier .zip files.
  • Log Storage Space: space of storing logs.

    AOM provides each account 500 MB log storage space for free each month. You will be billed for any extra space you use on a pay-per-use basis. For details, see Pricing Details.

Figure 2 Using the log storage volume

Viewing Logs

After you create the workload, you can view container logs.

Click the workload, and click View Logs in the same row as the pod.

Figure 3 Viewing logs

You can view the logs of the corresponding container on the AOM console. For details about how to view logs in AOM, see Viewing Log Files.