Skip to main content

Administrating MarkLogic Server

Viewing the Application and System File Logs

The private system file log is maintained as a simple text file, and the application logs are also maintained as simple text files. 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 files are stored in the Logs directory under the MarkLogic Server data directory for your platform. You may have overridden the default location for this directory at installation time. The following table lists the default location of the file logs on your platform:

Platform

Private Log Files

Microsoft Windows

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

C:\Program Files\MarkLogic\Data\Logs\<port>_ErrorLog.txt

Red Hat Enterprise Linux

/var/opt/MarkLogic/Logs/ErrorLog.txt

/var/opt/MarkLogic/Logs/<port>_ErrorLog.txt

Mac OS X

~/Library/Application Support/MarkLogic/Data/Logs/ErrorLog.txt

~/Library/Application Support/MarkLogic/Data/Logs/<port>_ErrorLog.txt

The application log files are prefixed with the port number of the App Server corresponding the log file. These files contain a set of log messages ordered chronologically. The number of messages depends on the system activity and on the log level that you set. For example, a file log set to Debug would contain many lines of messages whereas a file log set to Emergency would contain the minimum set of messages.

Any trace events are also written to the MarkLogic Server ErrorLog.txt file. Trace events are used to debug applications. You can enable and set trace events in the Admin Interface on the Diagnostics page for a group. You can also generate your own trace events with the xdmp:trace function, which will go to the application log.

Note

When the log files are being written to a different device than the data files, it is possible to run out of space for logging. This does not appear to impact the servers ability to start, nor the availability of the forests, databases or app servers. Log entries will also still be written to /var/log/messages based on the configured OS logging level.