Object ::nsmcp::logTools::errorSummary (public)
::nsmcp::LogErrorSummaryTool ::nsmcp::logTools::errorSummary
Defined in /usr/local/ns/tcl/nsmcp/log-summary.tcl
- Testcases:
- No testcase defined.
Source code: namespace eval ::nsmcp::logTools {} ::nsf::object::alloc ::nsmcp::LogErrorSummaryTool ::nsmcp::logTools::errorSummary {set :description {Summarize system-log Error, Fatal and Bug records in a time window, with grouped counts, first/last occurrence, redacted examples and coverage. Prefer this for daily error summaries instead of paging all log_errors records. Defaults to today in UTC; period today/yesterday may use an explicit timezone, or use lastMinutes or from/to (exclusive end). Current log only; rotations are not examined. Returns explicit severityTotals independently of maxGroups. coverage.unrecognizedRecords counts unrecognized system-log entries; coverage.unrecognizedExamples provides up to five redacted examples with byte offsets. Recognizes stderr mutex traces and short startup entries separately via coverage.mutexTraceRecords, shortLogRecords and untimestampedExamples. These diagnostic counters cover the scanned file; timestamps are never inferred. Mutex traces are not errors; untimestamped Error/Fatal/Bug entries are reported as unknownTimeErrors rather than included in window totals. Scans the current file in resumable chunks with fixed bounds; running jobs report progress.examinedBytes and progress.sourceBytes. Runs asynchronously: poll log_results with jobHandle until complete; the completed result is the summary and has no record pages. Grouping is heuristic and bounded; report ungroupedRecords and coverage limitations.} set :inputSchema {{} object {type string object properties object { period object {type string string enum array {0 string today 1 string yesterday}} timezone object {type string string} lastMinutes object {type string integer minimum number 1 maximum number 10080} from object {type string integer minimum number 0} to object {type string integer minimum number 1} maxGroups object {type string integer minimum number 1 maximum number 50} } additionalProperties boolean false}} set :name log_error_summary set :outputSchema {} set :permission diagnostics.logs.read set :service ::nsmcp::logService}XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)