logApplicationMessage
Note
Available only in MongoDB Enterpriseand MongoDB Atlas.
The logApplicationMessage
command allows users to posta custom message to the audit log. Ifrunning with authorization, users must have clusterAdmin
role, or roles that inherit from clusterAdmin
, to runthe command.
The logApplicationMessage
has the following syntax:
- { logApplicationMessage: <string> }
MongoDB associates these custom messages with the auditoperation applicationMessage
,and the messages are subject to any filtering.