> **Experimental**
>
> `@aws-cdk/aws-redshift-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# ClusterLogging

The logging configuration for a Redshift cluster.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts#L179)
- Type last changed: v2.273.0-alpha.0 · 9 Oct 2026

## Example

```ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as s3 from 'aws-cdk-lib/aws-s3';
import { ClusterLogging } from '@aws-cdk/aws-redshift-alpha';

declare const vpc: ec2.IVpc;
declare const bucket: s3.IBucket;

const cluster = new Cluster(this, 'Redshift', {
  masterUser: {
    masterUsername: 'admin',
  },
  vpc,
  logging: ClusterLogging.s3({
    bucket,
    keyPrefix: 'redshift-logs/',
  }),
});
```

## Initializer

```ts
new ClusterLogging()
```

## Methods

- `cloudWatch(options?: CloudWatchLoggingOptions): ClusterLogging // chainable` (static) — Send logs to CloudWatch.

- `s3(options: S3LoggingOptions): ClusterLogging // chainable` (static) — Send logs to S3.
