Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在mongodb中启用系统级审核_Mongodb - Fatal编程技术网

如何在mongodb中启用系统级审核

如何在mongodb中启用系统级审核,mongodb,Mongodb,我对mongoDB很陌生。 作为mongoDB中安全实现的一部分,我需要启用系统级审计 auditLog: destination: file format: JSON path: data/db/auditLog.json 但这似乎不起作用。即使来自mongo shell,我也喜欢: mongo db --port <port number> -u <username> -p <password> --authenticationDatabase db -

我对mongoDB很陌生。 作为mongoDB中安全实现的一部分,我需要启用系统级审计

auditLog:
destination: file
format: JSON
path: data/db/auditLog.json
但这似乎不起作用。即使来自mongo shell,我也喜欢:

mongo db --port <port number> -u <username> -p <password> --authenticationDatabase db --auditDestination data/db/auditLog.json.
mongo db--port-u-p--authenticationDatabase db--auditDestination data/db/auditLog.json。
但它似乎仍然不起作用


非常感谢任何帮助

正如MongoDB文档中提到的审计功能,审计功能仅限于MongoDB的企业版

您需要联系MongoDB购买他们的企业软件