How to find how/when documents are being deleted

We have an names.nsf issue where person documents are mysteriously being deleted and group documents are mysteriously being changed. There are a few agents which touch the database, but I don’t know which one, if any, of these are malfunctioning and deleting the wrong documents.

Is there a way to set up logging such that I will be able to tell whenever an agent or a person deletes or edits entries in this database? Not just when, but what agent?

Thanks!

Chris

Subject: How to find how/when documents are being deleted

Isolate the problem by removing DELETE for all except for ADMINS and then remove EDIT for all except ADMINS. This will tell you if it’s an agent or a person causing the problem. What’cha think?

Subject: RE: How to find how/when documents are being deleted

I’m pretty certain it is an agent, since there’s a handful of agents touching this database, and I think I’m the only person.

I was hoping it was possible to capture events such as “this agent added this document at this time” or “this agent deleted this document at this time.”

Subject: RE: How to find how/when documents are being deleted

You might try adding some logging code in the PostDocumentDelete database event.

Subject: RE: How to find how/when documents are being deleted

Thanks, I’ll try that!

Subject: That would not see anything that a background agent is doing.

Why not do a design synopsis of the agents and search for @DeleteDocument or Remove(

Subject: Oops… thanks for the correction.

Thanks Bill…