Audit logging using log4j2
The audit log using log4j2 tracks various events concerning dashboards, data feeds, aliases, and permissions. Logins, logouts and failed logins are also tracked. This logging by log4j2 is enabled by default.
The following events are logged by log4j2.
create dashboards, data feeds, and aliases
edit dashboards, data feeds, and aliases
deleted dashboards, data feeds, and aliases
edit permissions
logins, logouts and failed logins
The tracked events are logged in the MashZone-AuditLog.log file. The file is located in the following directory.
<MashZone NextGen installation>/logs
The audit logging can be switched on and off in the log4j2.xml file. You can edit the XML file with any text or XML editor. If you want to disable the audit logging, set the value of the level parameter to OFF. The default value is info.
The file is located in the following directory.
<MashZone NextGen installation>/conf
Example of the log4j2.xml configuration file.
<?xml version="1.0" encoding="UTF-8"?>
<Configuration name="MashZoneNG-AuditLog" packages="com.aris.log4j2">
<Appenders>
<RollingFile name="amzng-audit" fileName="${sys:catalina.base}/logs/
MashZone-AuditLog.log" append="true" createOnDemand="true"
filePattern="${sys:catalina.base}/logs/
MashZone-AuditLog-%d{yyyy-MM-dd}-%i.log">
<PatternLayout>
<Pattern>%d{ISO8601}|%-5p|%m%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10MB"/>
</Policies>
<DefaultRolloverStrategy max="25"/>
</RollingFile>
</Appenders>
<Loggers>
<Logger name="AuditLog" level="info" additivity="false">
<AppenderRef ref="amzng-audit"/>
</Logger>
</Loggers>
</Configuration>