xdmp:logfile-scan( $path as xs:string, $match-pattern as xs:string?, $match-flags as xs:string?, $start-date as xs:dateTime?, $end-date as xs:dateTime?, $limit as xs:integer? ) as xs:string*
Scan a file in ErrorLog.txt format filtering by date range and regular expression.
http://marklogic.com/xdmp/privileges/xdmp-filesystem-file
xdmp:logfile-scan("file://host-in-cluster/var/opt/MarkLogic/Logs/ErrorLog.txt", ("Info"), (), xs:dateTime("2021-09-09T15:54:45.294"), (), 3) => 2021-09-09 15:54:45.296 Info: MarkLogic Converters 10.0-20210825 found 2021-09-09 15:54:45.485 Info: Host host-in-cluster with 32GB memory running Linux 5.7.15-100.fc31.x86_64 (Fedora release 31 (Thirty One)) 2021-09-09 15:54:45.984 Info: License key languages: en fr it de es zh-Hant zh ar ru nl ko fa ja pt nb nn sv
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.