Skip to main content

Administrating MarkLogic Server

Audit Log Files

When auditing is enabled, MarkLogic Server writes audit events to the AuditLog.txt file. Each host in a cluster maintains its own audit log files. Some actions might trigger multiple audit events, and those events might be logged over multiple hosts, as events are audited on the host in which the event occurs. For more information about the audit events, see Auditable Events. Note the following about the audit event log files:

  • Writes messages to AuditLog.txt file for various events.

  • Each event has a timestamp, event type, user, role, and other information relevant to the event (for example, document URI for document-read event). For an example of log entries, see Sample Audit Logs.

  • You can configure how often to rotate the audit files (similar to the log files, as described in Log Files).

  • The Audit log files are stored in the same directory as the Access log files (port_AccessLog.txt) and the Error log files (ErrorLog.txt), which is in the <marklogic-data-dir>/Logs directory. These files are private to the host in which the audit event occurred.

  • You may view the current or any archived file log at any time using standard text file viewing tools. Additionally, you can access the log files from the Log tab on the main page of the Admin Interface.

The following table shows the location of the AuditLog.txt files on the various platforms.

Platform

Audit File

Microsoft Windows

C:\Program Files\MarkLogic\Data\Logs\AuditLog.txt

Red Hat Linux

/var/opt/MarkLogic/Logs/AuditLog.txt

Mac OS X

~Library/Application Support/MARKlogic/Data/Logs/AuditLog.txt