Created
April 3, 2020 12:31
-
-
Save ableasdale/c00a909400f98f4626571bebf3e41dad to your computer and use it in GitHub Desktop.
MarkLogic: Enable the MarkLogic ReST API Diagnostic Trace Events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
(: | |
Enable ReST API Diagnostic Trace Events | |
See: https://help.marklogic.com/Knowledgebase/Article/View/692/ | |
:) | |
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; | |
declare variable $config := admin:get-configuration(); | |
let $config := admin:group-set-trace-events-activated($config, admin:group-get-id($config, "Default"), fn:true()) | |
let $config := admin:group-add-trace-event($config, admin:group-get-id($config, "Default"), | |
( | |
admin:group-trace-event("restapi") | |
) | |
) | |
return admin:save-configuration($config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment