---
name: databases-for-mongodb-howto-auditlogging
title: MongoDB Enterprise audit logging
description: Audit logging capabilities for IBM Cloud&reg; Databases for MongoDB Enterprise Edition are provided with IBM&reg; Cloud Logs.
last-updated: 2025-09-24
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/databases-for-mongodb?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# MongoDB Enterprise audit logging
{: #auditlogging}

Audit logging capabilities for IBM Cloud&reg; Databases for MongoDB Enterprise Edition are provided with IBM&reg; Cloud Logs.

## Event types
{: #event-types}

Databases for MongoDB Enterprise Edition provides audit logging capabilities based on the following event types: 

* `authenticate`
* `createCollection`
* `createDatabase`
* `createIndex`
* `renameCollection`
* `dropCollection`
* `dropDatabase`
* `dropIndex`
* `createUser`
* `dropUser`
* `dropAllUsersFromDatabase`
* `updateUser`
* `grantRolesToUser`
* `revokeRolesFromUser`
* `createRole`
* `updateRole`
* `dropRole`
* `dropAllRolesFromDatabase`
* `grantRolesToRole`
* `revokeRolesFromRole`
* `grantPrivilegesToRole`
* `revokePrivilegesFromRole`

The event types for Databases for MongoDB Enterprise Edition are fixed and not configurable. 
{: .note}

## Audit logs
{: #audit-logs}

Audit events appear in IBM&reg; Cloud Logs.

For more information on Databases for MongoDB Enterprise Edition audit logging, see the [Logging for Cloud Databases](https://cloud.ibm.com/docs/databases-for-mongodb?topic=databases-for-mongodb-logging&format=markdown) and the [Getting started with IBM&reg; Cloud Logs tutorial](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-getting-started&format=markdown){: external}.

Audit events had been appearing in IBM&reg; Log Analysis, which is being deprecated. For older deployments you can still use [IBM&reg; Log Analysis](https://cloud.ibm.com/docs/log-analysis?format=markdown) until March 2025. You may want to check that and make sure you are migrating to the new logging solution.
{: .note}