Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
MongoDB Branding Shape
Click here >
Docs Menu

Export Logs to External Services

You can configure your M10+ Atlas clusters to export system logs every minute to an external service. Exporting logs to an external service enables centralized log management, long-term retention, and integration with your existing monitoring and observability tools.

Atlas supports exporting the following log types:

  • mongod logs

  • mongos logs

  • mongod-audit logs

  • mongos-audit logs

You can specify which log types you want to export and configure up to 10 export paths to send logs to multiple destinations simultaneously.

Important

Logs can contain sensitive information (including PII). You are responsible for the storage and treatment of your logs in your external service. To have Atlas redact certain information before exporting logs, contact MongoDB Support.

  • You must have an M10+ cluster to export logs. Log export is not available for free or shared-tier clusters.

  • You must have Project Owner or Organization Owner access to configure log export.

  • Each Atlas host typically produces 1 GB of logs per day. Exporting logs incurs a data transfer cost. The exact data transfer cost varies depending on the destination, region, and cloud provider.

  • Network issues or retries can cause duplicate log entries in your external service.

The following table summarizes the external services that Atlas supports for log export:

Destination
Description

Export mongod, mongos, and audit logs to an AWS S3 bucket. Supports Multi-Region Access Points (MRAPs).

Export mongod, mongos, and audit logs to an Azure Blob Storage container.

Export mongod, mongos, and audit logs to Datadog for real-time log analysis and dashboards.

Export mongod, mongos, and audit logs to a Google Cloud Storage bucket.

Export mongod, mongos, and audit logs to an OpenTelemetry (OTel) endpoint for vendor-neutral observability.

Export mongod, mongos, and audit logs to Splunk Cloud or Splunk Enterprise for centralized log search and analysis.