Retrieval of entries

In some cases it will be possible to retrieve entries sent to AuditLog component using XMPP. To retrieve 2 oldest entries (oldest entries from cache) following iq stanza of get type should be sent to AuditLog component:

<iq type="get" id="auditlog-2" from="" to="">
  <retrieve xmlns="" offset="0" limit="2"/>

AuditLog component will respond with stanza in following format:

<iq type="result" id="auditlog-2" from="" to="">
  <entries xmlns="" offset="0" limit="2">

in which entries element contains requested entries as subelements in entry XML format.

If there was an error and entries could not be returned due to component not containing cached entries following result will be sent:

<iq type="error" id="auditlog-2" from="" to="">
  <error type="cancel">
    <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />

Other types of errors specified by XMPP protocol might also be returned by server if during processing of request error occurred.