Retrieving Audit Log Entries

The search-collection-audit-log-retrieve function enables developers to programmatically retrieve audit log information for a specific search collection and, optionally, a specific originator. Attempting to retrieve the audit log for a non-existent or uninitialized search collection will generate a SEARCH_ENGINE_OPENING_DATABASE error. Before attempting to retrieve audit log entries from a specified collection, you should always ensure that the collection exists and has been initialized.

The search-collection-audit-log-retrieve function takes the following parameters:

Note: The limit and offset parameters are often used together to iterate through the log in fixed-size units.

This function returns an audit-log-retrieve-response node, which is an XML element that contains some number of audit-log-entry elements. If an error occurs, the function throws an exception. Exceptions that may occur, and their causes, are the following: