
Returns the content of server log files.
Upon success, MarkLogic server returns status code 200 (OK) and the response
body contains the requested data. A status code of 400 (Bad request) is returned if the
request attempts to use the query parameters (start, end, or
regex) against an access or audit log; queries are only supported against
error logs. A status code of 401 (Unauthorized) is returned if the user
does not have the necessary privileges. A status code of 404 is returned if the specified
filename is not a log file.
manage-user role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
http://localhost:8002/manage/v2/logs?filename=ErrorLog.txt
==> Returns the ErrorLog.txt log in XML.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.