Docs Menu

Docs HomeLaunch & Manage MongoDBMongoDB Atlas

Push Logs to AWS S3 bucket

On this page

  • Prerequisites
  • Procedure
  • Limitations

You can continually push logs from mongod, mongos, and audit logs to an AWS S3 bucket. Atlas exports logs every 5 minutes.

You will need

  • an AWS account with permissions to manage IAM roles.

  • an existing AWS S3 bucket.

To continually push logs to an AWS S3 bucket, follow these steps.

1
2
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. Click Advanced in the sidebar.

3
4
5

You will be prompted to either a) create a new AWS role, or b) use one already attached to Atlas.

  • You can't specify which logs to send. Atlas sends all mongod, mongos, and audit logs.

  • Push-based log export doesn't support Bring Your Own Key (BYOK).

← View and Download MongoDB Logs