interface ContinuousLoggingProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.ContinuousLoggingProps |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#ContinuousLoggingProps |
Java | software.amazon.awscdk.services.glue.alpha.ContinuousLoggingProps |
Python | aws_cdk.aws_glue_alpha.ContinuousLoggingProps |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป ContinuousLoggingProps |
Properties for enabling Continuous Logging for Glue Jobs.
See also: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue_alpha from '@aws-cdk/aws-glue-alpha';
import { aws_logs as logs } from 'aws-cdk-lib';
declare const logGroup: logs.LogGroup;
const continuousLoggingProps: glue_alpha.ContinuousLoggingProps = {
enabled: false,
// the properties below are optional
conversionPattern: 'conversionPattern',
logGroup: logGroup,
logStreamPrefix: 'logStreamPrefix',
quiet: false,
};
Properties
Name | Type | Description |
---|---|---|
enabled | boolean | Enable continouous logging. |
conversion | string | Apply the provided conversion pattern. |
log | ILog | Specify a custom CloudWatch log group name. |
log | string | Specify a custom CloudWatch log stream prefix. |
quiet? | boolean | Filter out non-useful Apache Spark driver/executor and Apache Hadoop YARN heartbeat log messages. |
enabled
Type:
boolean
Enable continouous logging.
conversionPattern?
Type:
string
(optional, default: %d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
)
Apply the provided conversion pattern.
This is a Log4j Conversion Pattern to customize driver and executor logs.
logGroup?
Type:
ILog
(optional, default: a log group is created with name /aws-glue/jobs/logs-v2/
.)
Specify a custom CloudWatch log group name.
logStreamPrefix?
Type:
string
(optional, default: the job run ID.)
Specify a custom CloudWatch log stream prefix.
quiet?
Type:
boolean
(optional, default: true)
Filter out non-useful Apache Spark driver/executor and Apache Hadoop YARN heartbeat log messages.