Skip to content

Commit f9cff6f

Browse files
jason-price-mongodbjeff-allen-mongo
authored andcommitted
DOCSP-13233 Improved auditing coverage
1 parent 5b66594 commit f9cff6f

File tree

6 files changed

+269
-47
lines changed

6 files changed

+269
-47
lines changed

source/core/auditing.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ file, or a BSON file. To enable auditing for MongoDB Enterprise, see
2626

2727
For information on the audit log messages, see :doc:`/reference/audit-message`.
2828

29+
.. _auditing-audit-events-and-filter:
30+
2931
Audit Events and Filter
3032
-----------------------
3133

@@ -36,6 +38,14 @@ Once enabled, the auditing system can record the following operations [#transact
3638
- authentication and authorization, and
3739
- CRUD operations (requires :parameter:`auditAuthorizationSuccess` set to ``true``).
3840

41+
.. note::
42+
43+
Starting in MongoDB 5.0, :term:`secondaries <secondary>` do not log
44+
DDL audit events for replicated changes. DDL audit events are still
45+
logged for DDL operations that modify the :ref:`local database
46+
<replica-set-local-database>` and the :data:`system.profile
47+
<<database>.system.profile>` collection.
48+
3949
For details on audited actions, see :ref:`audit-action-details-results`.
4050

4151
With the auditing system, you can :ref:`set up filters <audit-filter>` to restrict the
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Starting in MongoDB 5.0, can alternatively be a document with one of
2+
these fields:
3+
4+
- ``isSystemUser`` that indicates whether the user who
5+
caused the event was a system user. Logged for self-referential jobs
6+
initiated by a background process that runs on the same server
7+
instance.
8+
9+
- ``unix`` that contains the MongoDB socket file path if the client
10+
connects through a Unix domain socket.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Starting in MongoDB 5.0, this additional information is logged for a
2+
view:
3+
4+
- ``viewOn`` field with the database and collection for the view.
5+
6+
- ``pipeline`` field with the
7+
:doc:`aggregation pipeline </core/aggregation-pipeline>` definition
8+
for the view.

0 commit comments

Comments
 (0)