NServiceBus purge audit queue

1k views Asked by At

I have multiple NSB endpoints using MSMQ as transport and pointing to centralized audit queue.

ServiceControl forwards the messages from the audit queue to its RavenDb and ServiceInsight/ServicePulse show those messages.

Over a period, I'm seeing the audit queue is filled up with lot of messages which is becoming a maintenance issue.

Question - Is there any configuration in ServiceControl that can purge the messages in the audit queue automatically?

1

There are 1 answers

0
Hadi Eskandari On

ServiceControl comes with message retention policies that you can also customize. You didn't mention which version of ServiceControl you're using but the latest one comes with default expiration of messages after 30 days. It is all documented here.