Cloudwatch Export Task stuck on "Started successfully"

0

We stream logs from our services to a cloudwatch log group under a couple different log streams. We want to export several days worth of logs to an S3 bucket so that it can be shared with a client.

We're following the steps from here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3ExportTasksConsole.html#ExportSingleAccount

We get through the steps and create the export task. The "aws-logs-write-test" is successfully created, but no actual logs showed up. The export task is stuck in the status "Started successfully" without any objects showing up in the S3 prefix.

The stream prefix has been left empty. We tried to specify the stream prefix for a specific stream but the same outcome happened.

How do I figure out what's going wrong and/or just get my logs exported to S3?

질문됨 8달 전424회 조회
2개 답변
1

Log data can take up to 12 hours to become available for export. Export tasks time out after 24 hours. If your export tasks are timing out, reduce the time range when you create the export task.

Reference Document: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3Export.html

AWS
답변함 8달 전
1

You can use describe export tasks using the AWS CLI to get the current status of the task.. In a command prompt, use the following describe-export-tasks command.

aws logs --profile CWLExportUser describe-export-tasks --task-id "cda45419-90ea-4db5-9833-aade86253e66"

[+] https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/DescribeExportTasks.html

AWS
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠