This MigratoryData add-on allows you to log various classes of events using the log4j framework such as:
- Access events
- Message events
- Cache events
- Stats events
This add-on is preinstalled in the MigratoryData server under the following folder, according to the package type used to install the MigratoryData server:
Location | Package type |
---|---|
addons/audit-log4j |
Platform-independent tarball package |
/usr/share/migratorydata/addons/audit-log4j |
RPM or DEB Linux package |
Its default configuration is available under the following folder:
Location | Package type |
---|---|
addons/audit-log4j |
Platform-independent tarball package |
/etc/migratorydata/addons/audit-log4j |
RPM or DEB Linux package |
The add-on is automatically enabled if at least one or more of the following parameters of the MigratoryData server are set on log4j
:
You can modify the source code of this add-on to fit your needs. The add-on is build with MigratoryData's Server Extensions API.
You can use the following commands to get and build the add-on:
$ git clone https://github.com/migratorydata/addon-audit-log4j.git
$ cd addon-audit-log4j
$ ./gradlew clean build copyJar
- Copy the modified add-on from
addon-audit-log4j/extensions/audit.jar
to the following location of your MigratoryData server installation:
Location | Package type |
---|---|
extensions/ |
Platform-independent tarball package |
/usr/share/migratorydata/extensions/ |
RPM or DEB Linux package |
- Set on
true
(rather than onlog4j
) one or more of the following paramters:
Note — It is not necessary to delete the log4j add-on
audit.jar
made available under the folderaddons
. The custom audit extensionaudit.jar
from the folderextensions
is automatically loaded when setting one or more of the above parameters ontrue
(rather than onlog4j
). Note also that the name of the extensionaudit.jar
is fixed, it cannot be changed in order to be loaded by the MigratoryData server.
- Finally, restart your MigratoryData server in order to reload the audit add-on.