使用 EnableCloudwatchLogsExports 参数通过 CloudFormation 创建 RDS aurora-mysql5.7
Create RDS aurora-mysql5.7 via CloudFormation with EnableCloudwatchLogsExports parameter
我有用于创建 RDS aurora-mysql5.7 集群的 CloudFormation 模板。
我正在尝试向其中添加 EnableCloudwatchLogsExports 参数:
RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
EnableCloudwatchLogsExports:
- String
还有一个问题...我对 'error'、'errors'、'error log' itp 的所有尝试。完成回滚和错误消息:
You cannot use the log types 'error logs' with engine version aurora-mysql 5.7.12. For supported log types, see the documentation. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 16f5c442-6969-44aa-a67e-12f9ca524055)
我想将审计、错误、一般和慢速查询日志发布到 CloudWatch。
我在文档中找不到此 属性.
支持的 'allowed' 值是什么
尝试以下操作:
- 尝试指定日志类型如下:
RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
EnableCloudwatchLogsExports:
- "error"
- "general"
- "slowquery"
- "audit"
确保使用的数据库集群参数组启用了高级审计。例如:server_audit_logging
的值为 ON
。
参考:Using Advanced Auditing with an Amazon Aurora MySQL DB Cluster
如果以上2种方法都不行,换MySQL版本试试
我有用于创建 RDS aurora-mysql5.7 集群的 CloudFormation 模板。
我正在尝试向其中添加 EnableCloudwatchLogsExports 参数:
RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
EnableCloudwatchLogsExports:
- String
还有一个问题...我对 'error'、'errors'、'error log' itp 的所有尝试。完成回滚和错误消息:
You cannot use the log types 'error logs' with engine version aurora-mysql 5.7.12. For supported log types, see the documentation. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 16f5c442-6969-44aa-a67e-12f9ca524055)
我想将审计、错误、一般和慢速查询日志发布到 CloudWatch。 我在文档中找不到此 属性.
支持的 'allowed' 值是什么尝试以下操作:
- 尝试指定日志类型如下:
RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
EnableCloudwatchLogsExports:
- "error"
- "general"
- "slowquery"
- "audit"
确保使用的数据库集群参数组启用了高级审计。例如:
server_audit_logging
的值为ON
。 参考:Using Advanced Auditing with an Amazon Aurora MySQL DB Cluster如果以上2种方法都不行,换MySQL版本试试