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 Resposta
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
ESPECIALISTA
respondido há um mês
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas