[cw_log] Section - AWS ParallelCluster

[cw_log] Section

Defines configuration settings for CloudWatch Logs.

The format is [cw_log <cw-log-name>].

[cw_log custom-cw-log] enable = true retention_days = 14

For more information, see Integration with Amazon CloudWatch Logs.

Note

Support for cw_log was added in AWS ParallelCluster 2.6.0.

enable

(Optional) Indicates whether CloudWatch Logs is enabled.

The default value is true. Use false to disable CloudWatch Logs.

The following example enables CloudWatch Logs.

enable = true

retention_days

(Optional) Indicates how many days CloudWatch Logs retains individual log events.

The default value is 14. The supported values are 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

The following example configures CloudWatch Logs to retain log events for 30 days.

retention_days = 30