Detecting gaps in the audit record