[DOCS-16367] [SERVER] Audit Filter example does not work as displayed for findAndModify() Created: 06/Sep/23 Updated: 30/Oct/23 Resolved: 07/Sep/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | Zynon Putney | Assignee: | Lauren Tran |
| Resolution: | Done | Votes: | 0 |
| Labels: | bugfix, quick-win | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 21 weeks, 6 days ago |
| Description |
|
Audit Filter examples on the following page, if they are copy pasted into a MongoDB configuration, will not produce the desired results for `findAndModify()` operations. If a customer copy pastes these examples into their environment and tests, they will not be successful.
Please see updated examples with the correct case sensitivity: { atype: "authCheck", "param.command": \{ $in: [ "find", "insert", "delete", "update", "findAndModify" ] }}
mongod --dbpath data/db --auth --setParameter auditAuthorizationSuccess=true --auditDestination file --auditFilter '{ atype: "authCheck", "param.command": { $in: [ "find", "insert", "delete", "update", "findAndModify" ] }}' --auditFormat BSON --auditPath data/db/auditLog.bson }' } }' --auditFormat BSON --auditPath data/db/auditLog.bson }' |
| Comments |
| Comment by Lauren Tran [ 07/Sep/23 ] |