How do I delete an export task from Cloudwatch to S3?

0

A while ago I set up a same account export using the guide here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3ExportTasksConsole.html. Essentially I end up with new folders daily, in my target s3 bucket, which contain Cloudwatch log exports.

I no longer need to export these logs to S3 - how can I delete this task? In the console, I see no option aside from one to cancel an in-progress task. I can't cancel the task once it's finished.

The same limitation appears in the CLI command: https://docs.aws.amazon.com/cli/latest/reference/logs/ There is no option to delete the task, just cancel an in-progress one.

Is there any option to stop the export, short of deleting the log group or restricting the bucket permissions?

Tony
已提问 1 个月前286 查看次数
1 回答
0

Hello.

Your shared document settings only run exporting once, so you may have configured something like EventBridge to export periodically.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3ExportTasksConsole.html

Please check if EventBridge scheduler is configured.
If EventBridge scheduler remains and is not needed, try deleting it using the steps in the document below.
https://docs.aws.amazon.com/scheduler/latest/UserGuide/managing-schedule-delete.html

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则