Chapter 3. Protocol

Table of Contents

Entry
Appending entries to log
Retrieval of entries

For communication between processor detecting events and component responsible for logging events special extension of XMPP protocol is used with namespace http://tigase.org/protocol/auditlog which will be passed added as xmlns attribute to action elements of stanza requests. All stanzas will be iq stanzas.

Entry

Entry is an xml element which contains other elements as properties with values. It is basic element logged by component to audit log.

<entry>
  <whenOccurred>2015-01-15T14:54:04Z</whenOccurred>
  <srcAddress>user1@example.com</srcAddress>
  <dstAddress>user2@example.com</dstAddress>
  ...
</entry>

In above example we have passed:

whenOccurred
property which contains timestamp of this even,
srcAddress
containing source jid of stanza which triggered event,
dstAddress
containing destination jid of stanza which triggered event.