Log Analysis
MCP routing
- Preferred path: use MCP
unicatoolsunica.search,unica.viewon the object node,unica.view {},unica.check, andunica.docs. - Runtime идёт через
unica.run: вызов безopотдаёт словарь операций и
контракт каждой — argsSchema, execution, previewRequired,
dryRunRequired. Контракт вызова бери оттуда, а не из этого текста;
используй опубликованную argsSchema; при support.state: limited
разрешено только подмножество support.supportedArgs. Недоступной операции
в словаре нет. Для плановой операции сначала проверь результат
dryRun: true, затем исполняй запрос с dryRun: false. Preview
не фиксирует входы между вызовами. Не обходи контракт прямым runner-ом.
- Check syntax with
unica.checkand launch a client throughunica.run(launch); test runs are outside the v0.13 surface, and neither call is verification or a substitute for log evidence. - Do not call internal runtime, analyzer, standards, or package adapters directly. They are hidden behind MCP
unica.
Inputs
Accept explicit journal registration exports, technological log files, copied log fragments, or paths provided by the user. Preserve timestamps, process/session ids, users, infobase, event kind, module/procedure, transaction id, SQL text, and correlation ids.
References
- Read
../../references/platform/runtime-diagnostics.mdfor ЖР/ТЖ timeline, startup, web-client, HTTP, background job, and process/session evidence. - Read
../../references/platform/db-performance.mdwhen log fragments contain SQL, locks, deadlocks, waits, long queries, or DBMS-specific artifacts.
Workflow
- Classify the evidence: ЖР event, ТЖ event, platform exception, DBMS/SQL, lock/deadlock, long call, background job, HTTP service, web client request, or auth/session problem.
- Build a timeline. Keep clock source and timezone explicit when several files are involved.
- Extract module, procedure, metadata object, HTTP path, query text, user/session, and transaction identifiers.
- Map log entries back to source with
unica.searchand metadata withunica.viewon the object node. - Use
unica.docswithsource: "development-standard"for diagnostic ids anddevelopment-standardrecommendations. The exact meaning of a platform message requiresunica.docswithsource: "platform-help". - Separate root cause from consequences: the first exception/lock/timeout usually matters more than later rollback noise.
- For DBMS evidence, preserve lock holder/waiter, SQL text, transaction boundary, process id, session id, wait event, table/index name, and elapsed time together.
Output
- Root-cause hypothesis with evidence lines.
- Timeline of key events.
- Affected code and metadata paths.
- Recommended fix or next measurement.
- Missing evidence, if the log fragment cannot support a reliable conclusion.
MCP example
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "unica.search",
"arguments": {
"query": "ВыполнитьОбменСКонтрагентом",
"scope": "<source-set-from-unica-view>:Configuration",
"limit": 20
}
}
}