Skip to main content
Version: 4.6.x.x LTS

AuditFilter

Deprecated

The AuditFilter is deprecated. It becomes invalid or obsolete in future release versions. Do not use it anymore. Instead, use the LoggerFilter.

To have the same behavior, configure the LoggerFilter parameters as follows:

  • RotationPolicy: Same configuration as the RotationPolicy parameter of the AuditFilter.
  • FileName: Same configuration as the LogFile parameter of the AuditFilter.
  • LogLine: INFO Principal="AUTH:user.auth.UserId;" SessId="ENV:bcx.servlet.session.HttpSessionId;" Source="AUTH:user.auth.EntryId;" Event="Application Start" Detail="ENV:REMOTE_ADDR;" Application="ENV:bcx.servlet.request.ServletPath;"
  • AddTimeStamp: Set to "true".
  • OncePerSession: Set to "true".
  • OncePerSession.Key: ENV:bcx.servlet.request.ServletPath; The AuditFilter enables auditing of every first (authenticated) user access to a location into a separate audit log file.

Classname

ch::nevis::isiweb4::filter::audit:AuditFilter

Library

libAuditFilter

Configuration

NameType, Usage Constraints, DefaultsDescription
LogFilestring requiredThe audit log file
RotationPolicystring optional default: no rotationDefines the log file rotation policy. Log file rotation can be configured by configuring the maximum size of a log file, or by triggering the rotation after a certain amount of time:"size:<size in bytes>:<number of logfiles>": If log file rotation depends on the file size, the configuration has to specify a maximum file size (in bytes) and the number of logfiles over which the rotation is done (e.g., "size:10000000:10" will rotate over 10 files of 10MB). "`time:<hourly
AccessRulesstring: url:<integer>optional default: url:1This attribute defines applicable access rules. An audit entry will be written for the first access to an url that exceeds "<integer>"(where the size is defined by the number of "/" in a URI) .