Skip to content

Commit 34cba67

Browse files
npentrelandf-mongodb
authored andcommitted
DOCS-14286 update audit message for createIndex
1 parent 131ebfb commit 34cba67

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

source/reference/audit-message.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,25 @@ associated ``param`` details and the ``result`` values, if any.
206206
{
207207
ns: <database>.<collection>,
208208
indexName: <index name>,
209-
indexSpec: <index specification>
209+
indexSpec: <index specification>,
210+
indexBuildState: <index build state>
210211
}
211212

213+
Possible values for ``indexBuildState`` are:
212214

213-
- ``0`` - Success
215+
- ``IndexBuildStarted``
216+
- ``IndexBuildSucceeded``
217+
- ``IndexBuildAborted``
218+
219+
- | ``0`` - Success
220+
| ``276`` - Index build aborted.
221+
222+
The audit message contains result code ``276`` for
223+
:authaction:`createIndex` audit events with ``IndexBuildState``
224+
set to ``IndexBuildAborted``. The audit message contains result
225+
code ``0`` for :authaction:`createIndex` audit events with
226+
``IndexBuildState`` set to ``IndexBuildStarted`` or
227+
``IndexBuildSucceeded``.
214228

215229
* - :authaction:`renameCollection`
216230

0 commit comments

Comments
 (0)