logApplicationMessage

  • 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 clusterAdminrole, or roles that inherit from clusterAdmin, to runthe command.

The logApplicationMessage has the following syntax:

  1. { logApplicationMessage: <string> }

MongoDB associates these custom messages with the auditoperation applicationMessage,and the messages are subject to any filtering.