liveBook · Manning

Auditability

As explained in MongoDB 8.0 in Action, Third Edition

An audit log is a chronological record of security-relevant actions and events for accountability and review.

Auditability records security-relevant actions and events so teams can review user activity, investigate access, and support security-policy compliance. Atlas provides two complementary forms: Control Plane auditing records actions from the Atlas UI at project and organization levels, while MongoDB database auditing records selected database activities and user actions within a project. section 20.4 section 21.3.2

Use audit logs with these operational distinctions:

  • Retrieve Control Plane records through the Atlas UI or Atlas API for review and integration with monitoring workflows. section 20.4
  • Filter database auditing by actions such as reads and writes, users, roles, and LDAP groups; authentication and authorization events include success or failure details. section 20.4
  • Expect failed authorization attempts by default; enable auditAuthorizationSuccess only when successful reads and writes are necessary, because full logging increases volume and processing overhead. section 20.4
  • Review logs in the Atlas UI or download them with the Atlas CLI; filter by type, status, timestamp, user, or request ID when investigating activity. section 21.3.2

Reading an authorization event

An authCheck record can identify the database namespace, command, local and remote addresses, user, role, timestamp, and result. For example, a successful find on sample_training.routes can be associated with sampleUser using the readWrite role.

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains audit scopes, event types, filtering, retrieval, and performance trade-offs, but not retention configuration or downstream analysis implementation.
Examples
Uses authCheck JSON, Atlas UI and API review, CLI downloads, and filters for authentication and database operations.
What you can do after
Operate Atlas auditing, inspect authentication and database events, filter relevant records, and download logs for review.
How it connects
Connects auditability with authentication, authorization, logging, monitoring, compliance, and security policies.

Also explained in

Compare how 6 books explain auditability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.