Database Manual / Reference / Database Commands

System Events Auditing Commands系统事件审核命令

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.有关特定命令的详细信息,包括语法和示例,请单击指向该命令参考页面的链接。

Name名称Description描述
getAuditConfig

Deprecated in version 7.1: Use the auditConfig cluster parameter instead.7.1版本中已弃用:请改用auditConfig集群参数。

Retrieves audit configurations from mongod and mongos instances.mongodmongos实例中检索审计配置。

logApplicationMessagePosts a custom message to the audit log.将自定义消息发布到审核日志中。
setAuditConfig

Deprecated in version 7.1: Use the auditConfig cluster parameter instead.7.1版本中已弃用:请改用auditConfig集群参数。

Sets audit configurations for mongod and mongos instances at runtime.在运行时为mongodmongos实例设置审计配置。