【发布时间】:2020-02-02 21:46:14
【问题描述】:
我正在使用 Cloudformation 完成所有这些工作。我试图为已经工作的复制任务启用日志记录,但是我在任何地方都看不到日志,似乎应该为日志创建一个组,并且文档中没有类似的选项。我在 Replication Task 的文档中找不到日志组的参数。[1] [2] [3]
这是我的复制任务。
ReplicationTask:
Type: 'AWS::DMS::ReplicationTask'
Properties:
SourceEndpointArn: !Ref SourceEndpoint
TargetEndpointArn: !Ref TargetEndpoint
ReplicationInstanceArn: !Ref ReplicationInstance
MigrationType: 'full-load'
TableMappings: '
{
"rules": [
{
"rule-type": "selection",
"rule-id": "1",
"rule-name": "1",
"object-locator": {
"schema-name": "%",
"table-name": "%"
},
"rule-action": "include"
}
]
}'
ReplicationTaskSettings: '
{
"Logging": {
"EnableLogging": true,
"LogComponents": [{
"Id": "SOURCE_UNLOAD",
"Severity": "LOGGER_SEVERITY_DEFAULT"
},{
"Id": "SOURCE_CAPTURE",
"Severity": "LOGGER_SEVERITY_DEFAULT"
},{
"Id": "TARGET_LOAD",
"Severity": "LOGGER_SEVERITY_DEFAULT"
},{
"Id": "TARGET_APPLY",
"Severity": "LOGGER_SEVERITY_INFO"
},{
"Id": "TASK_MANAGER",
"Severity": "LOGGER_SEVERITY_DEBUG"
}]
},
}'
当我单击复制任务时,我会在日志选项卡中看到一个链接,该链接将我带到云手表,在该链接中我看到一个错误 Log group not found
参考资料:
[1]http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html
[2]http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html
[3]http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html
【问题讨论】:
-
您可能需要为用户设置它。这些文档链接让您更深入地了解,docs.aws.amazon.com/dms/latest/userguide/…
标签: amazon-web-services logging amazon-cloudformation amazon-cloudwatch aws-dms