Auditing

MSMQ allows you to audit access operations for your MSMQ enterprise, sites, connected networks (CNs), computers, and queues.

For the most part, auditing is set up and maintained by the MSMQ Explorer (for a complete description of auditing, see the Microsoft Message Queue Server Administrator's Guide). However, it is possible to audit queue operations by modifying the system access control list (SACL) of the queue's security descriptor.

The following queue operations can be audited:

Audit log messages are written in the event log on the server that performs the actual operation, not necessarily the server that owns the object. For example, audits for opening a queue are logged on the computer where the queue resides. However, other operations (such as setting queue properties) are logged on the machine that performed the operation. As a result, the audit messages for a queue can be logged on servers throughout your MSMQ enterprise.

Note  The send operation cannot be audited.

For applications using MSMQ API functions, call MQSetQueueSecurity to modify the queue's security descriptor.