Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Tutorial: Send AWS Batch job logs to CloudWatch Logs

Focus mode
Tutorial: Send AWS Batch job logs to CloudWatch Logs - AWS Batch

You can configure your AWS Batch jobs to send log information to Amazon CloudWatch Logs. This way, you can view different logs from your jobs in one convenient location. For more information, see Using CloudWatch Logs with AWS Batch.

You can also use Job logs in the AWS Batch console to monitor or troubleshoot an AWS Batch job.

  1. Open the AWS Batch console.

  2. Choose Jobs.

  3. For Job queue, choose the job queue that you want.

    Tip

    If there are several jobs in the job queue, you can turn on Searching and filtering to find a job faster. For more information, see Search AWS Batch jobs in a job queue.

  4. For Status, choose the job status that you want.

  5. Choose the job that you want.

  6. On the Details page, scroll down to Job Logs.

  7. Choose Retrieve logs.

  8. For Authorization required, enter OK, and then choose Authorize to accept Amazon CloudWatch charges.

    Note

    To revoke your authorization for CloudWatch charges:

    1. In the left navigation pane, choose Permissions.

    2. For Job logs, choose Edit.

    3. Clear the Authorize Batch to use CloudWatch check box.

    4. Choose Save changes.

  9. Review the log data for the AWS Batch job.

    Tip

    You can filter the log based on Keywords, Max results, and Sorting. You can also choose one of the default time intervals or create a custom interval to customize the results.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.