Skip to content

/AWS1/CL_EMSCLOUDWATCHLOGCONF

The Amazon CloudWatch configuration for monitoring logs. You can configure your jobs to send log information to CloudWatch.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_enabled TYPE /AWS1/EMSBOOLEAN /AWS1/EMSBOOLEAN

Enables CloudWatch logging.

Optional arguments:

iv_loggroupname TYPE /AWS1/EMSLOGGROUPNAME /AWS1/EMSLOGGROUPNAME

The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.

iv_logstreamnameprefix TYPE /AWS1/EMSLOGSTREAMNAMEPREFIX /AWS1/EMSLOGSTREAMNAMEPREFIX

Prefix for the CloudWatch log stream name.

iv_encryptionkeyarn TYPE /AWS1/EMSENCRYPTIONKEYARN /AWS1/EMSENCRYPTIONKEYARN

The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.

it_logtypes TYPE /AWS1/CL_EMSLOGTYPELIST_W=>TT_LOGTYPEMAP TT_LOGTYPEMAP

The types of logs that you want to publish to CloudWatch. If you don't specify any log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default. For more information including the supported worker types for Hive and Spark, see Logging for EMR Serverless with CloudWatch.

  • Key Valid Values: SPARK_DRIVER, SPARK_EXECUTOR, HIVE_DRIVER, TEZ_TASK

  • Array Members Valid Values: STDOUT, STDERR, HIVE_LOG, TEZ_AM, SYSTEM_LOGS


Queryable Attributes

enabled

Enables CloudWatch logging.

Accessible with the following methods

Method Description
GET_ENABLED() Getter for ENABLED, with configurable default
ASK_ENABLED() Getter for ENABLED w/ exceptions if field has no value
HAS_ENABLED() Determine if ENABLED has a value

logGroupName

The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.

Accessible with the following methods

Method Description
GET_LOGGROUPNAME() Getter for LOGGROUPNAME, with configurable default
ASK_LOGGROUPNAME() Getter for LOGGROUPNAME w/ exceptions if field has no value
HAS_LOGGROUPNAME() Determine if LOGGROUPNAME has a value

logStreamNamePrefix

Prefix for the CloudWatch log stream name.

Accessible with the following methods

Method Description
GET_LOGSTREAMNAMEPREFIX() Getter for LOGSTREAMNAMEPREFIX, with configurable default
ASK_LOGSTREAMNAMEPREFIX() Getter for LOGSTREAMNAMEPREFIX w/ exceptions if field has no
HAS_LOGSTREAMNAMEPREFIX() Determine if LOGSTREAMNAMEPREFIX has a value

encryptionKeyArn

The Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.

Accessible with the following methods

Method Description
GET_ENCRYPTIONKEYARN() Getter for ENCRYPTIONKEYARN, with configurable default
ASK_ENCRYPTIONKEYARN() Getter for ENCRYPTIONKEYARN w/ exceptions if field has no va
HAS_ENCRYPTIONKEYARN() Determine if ENCRYPTIONKEYARN has a value

logTypes

The types of logs that you want to publish to CloudWatch. If you don't specify any log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default. For more information including the supported worker types for Hive and Spark, see Logging for EMR Serverless with CloudWatch.

  • Key Valid Values: SPARK_DRIVER, SPARK_EXECUTOR, HIVE_DRIVER, TEZ_TASK

  • Array Members Valid Values: STDOUT, STDERR, HIVE_LOG, TEZ_AM, SYSTEM_LOGS

Accessible with the following methods

Method Description
GET_LOGTYPES() Getter for LOGTYPES, with configurable default
ASK_LOGTYPES() Getter for LOGTYPES w/ exceptions if field has no value
HAS_LOGTYPES() Determine if LOGTYPES has a value