Integration with Amazon CloudWatch Logs
For more information about CloudWatch Logs, see Amazon CloudWatch Logs User Guide. To configure CloudWatch Logs integration, see the Monitoring section.
To learn how to append custom logs to the CloudWatch configuration using append-config
, see
Multiple CloudWatch agent configuration files
in the Amazon CloudWatch User Guide.
Amazon CloudWatch Logs cluster logs
A log group is created for each cluster with a name,
/aws/parallelcluster/
(for example,
cluster-name-<timestamp>
/aws/parallelcluster/testCluster-202202050215
). Each log (or set of logs if the path contains a *
) on each node has a
log stream named
. (For
example {hostname}
.{instance_id}
.{logIdentifier}
ip-172-31-10-46.i-02587cf29cc3048f3.nodewatcher
.) Log data is sent to CloudWatch by the CloudWatch agent, which runs as root
on all cluster
instances.
An Amazon CloudWatch dashboard is created when the cluster is created. This dashboard gives you the ability to review the logs stored in CloudWatch Logs. For more information, see Amazon CloudWatch dashboard.
This list contains the logIdentifier
and path for the log streams available for platforms, schedulers, and nodes.
Platforms | Schedulers | Nodes | Log streams |
---|---|---|---|
amazon redhat ubuntu |
awsbatch slurm |
HeadNode |
dcv-authenticator: dcv-ext-authenticator: dcv-agent: dcv-xsession: dcv-server: dcv-session-launcher: Xdcv: cfn-init: chef-client: |
amazon redhat ubuntu |
awsbatch slurm |
ComputeFleet HeadNode |
cloud-init: supervisord: |
amazon redhat ubuntu |
slurm |
ComputeFleet |
cloud-init-output: computemgtd: slurmd: slurm_prolog_epilog: |
amazon redhat ubuntu |
slurm |
HeadNode |
sssd: sssd_domain_default: pam_ssh_key_generator: clusterstatusmgtd: clustermgtd: compute_console_output: slurm_resume: slurm_suspend: slurmctld: slurm_fleet_status_manager: |
amazon redhat |
awsbatch slurm |
ComputeFleet HeadNode |
system-messages: |
ubuntu |
awsbatch slurm |
ComputeFleet HeadNode |
syslog: |
Jobs in clusters that use AWS Batch store the output of jobs that reached a state of RUNNING
, SUCCEEDED
, or
FAILED
in CloudWatch Logs. The log group is /aws/batch/job
, and the log stream name format is
. By default, these logs are set not to
expire, but you can modify the retention period. For more information, see Change log data
retention in CloudWatch Logs in the Amazon CloudWatch Logs User Guide.jobDefinitionName
/default/ecs_task_id
Amazon CloudWatch Logs build image logs
A log group is created for each custom build image with a name,
/aws/imagebuilder/ParallelClusterImage-
. A unique log stream with name,
<image-id>
{pcluster-version}
/1 contains the output of the build image process.
You can access the logs by using the pcluster image commands. For more information, see AWS ParallelCluster AMI customization.