Both on versions 7.0.22 and 8.0.10 where the same audit changes were done, audit stopped working.
Upon startup audit options on the mongod.cfg don’t get recognized but were working fine before:
This was the original config which doesn’t get recognized since these versions 7.0.22 and 8.0.10:
auditLog:
destination: syslog
filter: ‘{ atype: { $in: [ “authenticate” ] } }’
[STG]mongo@xxxx:/apps/mongo/AFB1S # cat /tmp/mongo_AFB1S.err
Unrecognized option: auditLog.destination
but it doesn’t work either with this:
auditLog:
filter: ‘{ atype: { $in: [ “authenticate” ] } }’
destination: file
format: JSON
path: “/apps/mongo/AFB1S/log/mongodb-AFB1S.audit.log”
[STG]mongo@xxxx:/apps/mongo/AFB1S # cat /tmp/mongo_AFB1S.err
Unrecognized option: auditLog.filter