Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
https://github.com/mongodb/docs/blob/master/source/tutorial/configure-auditing.txt
This document refers to a param.db field for audit event filtering, I believe it should be param.ns
Example audit log entry:
{ "atype" : "dropDatabase", "ts" : { "$date" : "2015-05-07T15:41:01.724-0400" }, "local" : { "ip" : "127.0.0.1", "port" : 27017 }, "remote" : { "ip" : "127.0.0.1", "port" : 54703 }, "users" : [ { "user" : "two", "db" : "admin" } ], "roles" : [ { "role" : "root", "db" : "admin" } ], "param" : { "ns" : "test2" }, "result" : 0 } |
In this case, the field to filter would be "param" : { "ns" : "test2" }.