Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 21, 2017 07:40
Show Gist options
  • Save ableasdale/d36507c919ccc6cb0888ad21b81ad9d6 to your computer and use it in GitHub Desktop.
Save ableasdale/d36507c919ccc6cb0888ad21b81ad9d6 to your computer and use it in GitHub Desktop.
MarkLogic: Database Replication Trace Events
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";
declare variable $config := admin:get-configuration();
let $config := admin:group-add-trace-event($config, admin:group-get-id($config, "Default"),
(
admin:group-trace-event("Forest SetMasterInfo"),
admin:group-trace-event("Forest Mount"),
admin:group-trace-event("Forest Replicate Frame"),
admin:group-trace-event("Forest Replicate"),
admin:group-trace-event("Forest SetCurrentMasterFSN"),
admin:group-trace-event("Forest State"),
admin:group-trace-event("Forest Checkpoint"),
admin:group-trace-event("ForestReplicateCompare")
)
)
return admin:save-configuration($config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment