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?

1 Answer
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
EXPERT
answered 13 days ago
profile picture
EXPERT
reviewed 13 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions