Configuration of searchable repository

It is possible to configure AuditLog component to store events in MySQL database. To do that you need to enable AuditLog feature as described above and you need to enable searchableRepository in AuditLog component configuration.

'audit-log' () {
    searchableRepository () {}
}

This will use database configured as a default data source of Tigase XMPP Server. If want to use different data source, you need to configure this new data source (ie. auditlogDataSource) and configure searchableRepository to use it:

dataSource {
    ...
    auditlogDataSource () {
        uri = 'jdbc:mysql://..'
    }
    ...
}

'audit-log' () {
    searchableRepository () {
        'data-source' = 'auditlogDataSource'
    }
}

After that you will be able to browse AuditLog entries in Admin UI of Tigase XMPP Server within Auditlog section.

Warning

Remember that after enabling searchableRepository you need to load database schema for AuditLog component. To do that just execute upgrade-schema task of Tigase XMPP Server after configuration of AuditLog is done.