Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The audit records include the following information:

ValueDescription
Time stampThe time stamp that an action was done.
For example: 05/02/2017 18:18:30,839
Action execution time (ms)The action execution time in milliseconds.
User IP AddressThe IP address of the user that performed the action (for customers over NAT the actual IP may be the NAT service)
User IDThe DPOD logged in user ID that performed the action
ActionThe action description.
For example: addUser(userName=User1)

Enabling Audit Log

To enable audit logging, edit the UI service log4j configuration file: /app/ui/MonTier-UI/lib/log4j2.xml.


Add 1. Add a new appender under <Appenders> element with the following content:

Code Block
languagexml
themeRDark
<RollingFile name="AUDIT" fileName="${tomee-log-path}/audit.log" filePattern="${tomee-log-path}/audit.%i.log" append="true" bufferedIO="false" bufferSize="0">
	<PatternLayout> 
		<Pattern>%d{dd/MM/yyyy HH:mm:ss,SSS}- %p %c{1.} [%t] %m %ex%n</Pattern>
	</PatternLayout>
	<Policies>
		<SizeBasedTriggeringPolicy size="5 MB" />
	</Policies>
		<DefaultRolloverStrategy max="10"/>
</RollingFile>


2. Add a new logger under <Loggers> element with the following content:

...