Loading TOC...


   $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.

$path The path to the log file on the local or cluster filesystem.
$match-pattern Regular expression to match against log lines.
$match-flags Regex match flags.
$start-date Filter (discard) log records before $start-date.
$end-date Stop matching (discard) log records on or after end-date.
$limit Log lines limit.

Required Privileges



                  ("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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.