정의
logApplicationMessageThe
logApplicationMessagecommand allows users to post a custom message to the audit log. If running with authorization, users must haveclusterAdminrole, or roles that inherit fromclusterAdmin, to run the command.
호환성
이 명령은 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전
구문
명령은 다음과 같은 구문을 가집니다:
db.runCommand( { logApplicationMessage: <string> } )
행동
MongoDB는 이러한 사용자 지정 메시지를 감사 작업 applicationMessage 과 연결하며 메시지에는 필터링이 적용됩니다.