Skip to main content

πŸ›‘οΈ AWS EMR Cluster Logging is disabled🟒βšͺ

Similar Policies​

Description​

Open File

Description​

This policy identifies Amazon EMR clusters that do not have logging enabled. Ensure that all Amazon EMR cluster logs are archived and uploaded to Amazon S3 to support long-term retention, historical analysis, and operational troubleshooting.

Rationale​

Amazon EMR clusters are often ephemeral, created to perform specific workloads and terminated after completion. If logging is not enabled, all detailed records of cluster activity are lost upon termination. Logs are critical for diagnosing failures in Hadoop jobs, Spark applications, and cluster bootstrap or configuration processes. Centralizing EMR logs in Amazon S3 enables long-term retention, supports forensic analysis, and improves visibility into operational and security-related events across EMR workloads.

Audit​

This policy flags an AWS EMR Cluster as INCOMPLIANT if the Log Url field is empty, indicating that cluster logging is not configured.

Remediation​

Open File

Remediation​

Enable Amazon EMR Cluster Logging​

Amazon EMR does not support enabling or modifying logging configuration after a cluster has been launched. Ensure that all new EMR clusters are created with logging explicitly enabled.

Cluster logs must be delivered to Amazon S3 to support troubleshooting, operational analysis, and long-term retention.

From Command Line​

When creating a new EMR cluster, include the --log-uri parameter to specify the Amazon S3 location where logs will be stored:

aws emr create-cluster \
--name {{cluster-name}} \
--log-uri s3://{{bucket-name}}/{{prefix}} \
# ... other properties

Replace the placeholders with values appropriate for your environment.

Using AWS CloudFormation​

When provisioning EMR clusters using AWS CloudFormation, configure the LogUri property in the AWS::EMR::Cluster resource definition:

Resources:
MyEmrCluster:
Type: AWS::EMR::Cluster
Properties:
LogUri: s3://{{bucket-name}}/{{prefix}}
# ... other properties

... [see more](remediation.md)

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό AWS Well-Architected β†’ πŸ’Ό SEC04-BP02 Capture logs, findings, and metrics in standardized locations3no data
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Logging and Monitoring Configuration71no data