When audit is enabled, document deletion is logged as expected when manually or programatically executed. However, if an expiry time (TTL) is set, there doesn’t appear to be an audit event recorded.
Is there something we’re missing, or are expiry events not logged (using Enterprise Edition 7.1.1 build 3175)?
Apologies for the delay in reply here. Unfortunately there is not currently support for auditing of expiration since it’s not technically a user-generated event. In the near-term, you may be able to get around it by using the Eventing function to detect than an item is expiring and log it…but I acknowledge that it’s certainly not an ideal approach. I’d encourage you to file an enhancement request at issues.couchbase.com