MongoDB Push-Based Log Export API

You can continually export mongod, mongos, and audit logs to an AWS S3 bucket. The new `/logIntegrations` API provides 1-minute log export on a best-effort basis. The existing `/pushBasedLogExport` API provides 5-minute log export and will be deprecated in the future. The log export integrations are managed at the project level.

GitHub OpenAPI
Business capability
Observability Management BC-4220.20

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/groups/{groupId}/logIntegrations List a project's log integrations · Return All Active Log Integrations #
Ask an LLM
“Which log integrations are configured for my project?”
“Can I filter a project's log integrations by type?”
Tell an agent
List the log integrations for project {groupId}.
Show project {groupId}'s log integrations of type {integrationType}.
POST /api/atlas/v2/groups/{groupId}/logIntegrations Create a project log integration · Create One Log Integration #
Ask an LLM
“How do I send my project's logs to S3?”
“Can I choose which log types a project integration exports?”
Tell an agent
Create a {type} log integration for project {groupId} exporting {logTypes}.
Set up a new project log integration in {groupId} for log types {logTypes}.
DELETE /api/atlas/v2/groups/{groupId}/logIntegrations/{id} Remove a project log integration · Remove One Log Integration #
Ask an LLM
“How do I stop sending my project's logs to a destination?”
“Can I delete a project log integration?”
Tell an agent destructive · confirm first
Delete log integration {id} from project {groupId}.
Remove the project {groupId} log integration {id}.
GET /api/atlas/v2/groups/{groupId}/logIntegrations/{id} Get a project log integration · Return One Log Integration #
Ask an LLM
“What are the settings of one log integration in my project?”
“Can I look up a project log integration by ID?”
Tell an agent
Get log integration {id} in project {groupId}.
Show the configuration of project {groupId}'s log integration {id}.
PUT /api/atlas/v2/groups/{groupId}/logIntegrations/{id} Update a project log integration · Update One Log Integration #
Ask an LLM
“How do I change which log types a project integration exports?”
“Can I rename a project log integration?”
Tell an agent
Update log integration {id} in project {groupId} to export {logTypes}.
Change the log types of project {groupId}'s integration {id} to {logTypes}.
DELETE /api/atlas/v2/groups/{groupId}/pushBasedLogExport Disable push-based log export for a project · Disable Push-Based Log Export for One Project #
Ask an LLM
“How do I stop pushing my project's logs to S3?”
“Can I reset a project's log export to defaults?”
Tell an agent destructive · confirm first
Disable push-based log export for project {groupId}.
Reset project {groupId}'s log export settings to defaults.
GET /api/atlas/v2/groups/{groupId}/pushBasedLogExport Get a project's push-based log export · Return One Push-Based Log Export Configuration in One Project #
Ask an LLM
“Is push-based log export enabled for my project?”
“What S3 bucket and prefix does a project push-based log export use?”
Tell an agent
Get the push-based log export configuration for project {groupId}.
Show project {groupId}'s push-based log export settings.
PATCH /api/atlas/v2/groups/{groupId}/pushBasedLogExport Update a project's push-based log export · Update One Push-Based Log Export Configuration in One Project #
Ask an LLM
“How do I change the S3 bucket a project log export uses?”
“Can I pause a project's log export without deleting it?”
Tell an agent
Update project {groupId}'s log export to bucket {bucketName} with prefix {prefixPath}.
Set the state of project {groupId}'s log export to {state}.
POST /api/atlas/v2/groups/{groupId}/pushBasedLogExport Enable push-based log export for a project · Create One Push-Based Log Export Configuration in One Project #
Ask an LLM
“How do I push my project's logs to S3 automatically?”
“Can I set the IAM role and prefix path for a project log export?”
Tell an agent
Enable push-based log export for project {groupId} to bucket {bucketName} with IAM role {iamRoleId} and prefix {prefixPath}.
Create a project log export in {groupId} writing to {bucketName} under {prefixPath} using role {iamRoleId}.
GET /api/atlas/v2/orgs/{orgId}/logIntegrations List an organization's log integrations · Return All Organization Log Integrations #
Ask an LLM
“Which log integrations exist across my whole organization?”
“Can I list every log integration in an organization?”
Tell an agent
List the log integrations for organization {orgId}.
Show all log integrations in organization {orgId}.
POST /api/atlas/v2/orgs/{orgId}/logIntegrations Create an organization log integration · Create One Organization Log Integration #
Ask an LLM
“How do I send logs from all my projects to one destination?”
“Can I set the log types for an organization-level integration?”
Tell an agent
Create a {type} log integration for organization {orgId} exporting {logTypes}.
Set up an organization log integration in {orgId} for log types {logTypes}.
DELETE /api/atlas/v2/orgs/{orgId}/logIntegrations/{logIntegrationId} Remove an organization log integration · Remove One Organization Log Integration #
Ask an LLM
“How do I stop an organization-wide log integration?”
“Can I delete an organization log integration?”
Tell an agent destructive · confirm first
Delete log integration {logIntegrationId} from organization {orgId}.
Remove the organization {orgId} log integration {logIntegrationId}.
GET /api/atlas/v2/orgs/{orgId}/logIntegrations/{logIntegrationId} Get an organization log integration · Return One Organization Log Integration #
Ask an LLM
“What are the settings of one organization log integration?”
“Can I look up an organization log integration by ID?”
Tell an agent
Get log integration {logIntegrationId} in organization {orgId}.
Show the configuration of organization {orgId}'s log integration {logIntegrationId}.
PUT /api/atlas/v2/orgs/{orgId}/logIntegrations/{logIntegrationId} Update an organization log integration · Update One Organization Log Integration #
Ask an LLM
“How do I change which log types an organization integration exports?”
“Can I update an organization log integration's type?”
Tell an agent
Update log integration {logIntegrationId} in organization {orgId} to export {logTypes}.
Change the log types of organization {orgId}'s integration {logIntegrationId} to {logTypes}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb:mongodb-push-based-log-export-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-push-based-log-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Push-Based Log Export API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Push-Based Log Export across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (95 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-push-based-log-export-api-openapi.yml