v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14238527879.4 KB

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

get/#Action=EnableLogging

Query parameters

ClusterIdentifierstring required
<p>The identifier of the cluster on which logging is to be started.</p> <p>Example: <code>examplecluster</code> </p>
BucketNamestring
<p>The name of an existing S3 bucket where the log files are to be stored.</p> <p>Constraints:</p> <ul> <li> <p>Must be in the same region as the cluster</p> </li> <li> <p>The cluster must have read bucket and put object permissions</p> </li> </ul>
S3KeyPrefixstring
<p>The prefix applied to the log file names.</p> <p>Constraints:</p> <ul> <li> <p>Cannot exceed 512 characters</p> </li> <li> <p>Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (\), or control characters. The hexadecimal codes for invalid characters are: </p> <ul> <li> <p>x00 to x20</p> </li> <li> <p>x22</p> </li> <li> <p>x27</p> </li> <li> <p>x5c</p> </li> <li> <p>x7f or larger</p> </li> </ul> </li> </ul>
LogDestinationType's3' | 'cloudwatch'

The log destination type. An enum with possible values of <code>s3</code> and <code>cloudwatch</code>.

LogExportsString[]

The collection of exported log types. Possible values are <code>connectionlog</code>, <code>useractivitylog</code>, and <code>userlog</code>.

Action'EnableLogging' required
Version'2012-12-01' required

Response

Success