Hello,
I’m trying to use filters with auditLog, and I’m currently facing an issue :
I’d like to print only commands like “insert”, “delete”, “update” from a precise database in my log file. I tried few things, but none of them worked out.
I went through Percona and Mongodb doc, and I found out that with Mongo Enterprise I’d have to use “setParameter {auditAuthorizationSuccess: true}” as parameter to get what I want.
But if I try using this in my mongod.conf file, or in command line, I have an error : "Unrecognized option: setParameter { auditAuthorizationSuccess ".
I tried to find anything about it in Persona doc, but I couldn’t find an answer.
Here’s the audit part of my mongod.conf file :
audit:
destination: file
format: JSON
path: /data/log/mongodb/vip-auditLog.json
filter: '{ atype: "authCheck", "users.db": "vip", "param.command": {$in: [ "insert", "delete", "update", "find", "findandmodify" ] } }'
setParameter { auditAuthorizationSuccess: true }
I’m using ubuntu 14.04 LTS.
Could anyone help me out ?