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 Risposta
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
ESPERTO
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande