Event Log Analysis (Event Log)
EL is a read-only source. Do not include raw records in the output without masking personal data. By default, mode: "minimal".
For DBMS queries, locks, and platform exceptions, use tech-log-analysis.
When to Use
| Trigger | Action |
|---------|----------|
| The user reports an error | First the latest Error, then a narrow time window |
| Error for a specific period | search_event_log with from/to |
| Audit of user actions | search_event_log with a user filter |
| Checking changes to an object | search_event_log with a metadata filter |
| Database state after tests | search_event_log with from: test_start_time, limit: 20 |
| Vanessa run failed | First the latest Error, if empty - without a level filter |
Search Algorithm
- Get
cluster_guidandinfobase_guidfromcluster_map.yaml. - Determine the strategy (see the cascade below).
search_event_logwith the required filters.- Analyze
records:event_time,event_presentation,comment,metadata_presentation. - If a metadata object is mentioned, use
navigate_symbolto jump to the code.
Filter Cascade
- First - the latest
level: "Error"records (withoutfrom/toif the exact time is unknown). - If empty - repeat without the level filter.
- If the time is known - narrow
from/toto ±15 minutes. - If the EL does not respond - switch to
tech-log-analysis.
Timezone drift: local time and ClickHouse may differ; therefore step 1 without a time filter is more reliable.
search_event_log(
cluster_guid: "...",
infobase_guid: "...",
from: "2025-02-11T13:00:00Z",
to: "2025-02-11T14:00:00Z",
level: "Error",
mode: "minimal",
limit: 100
)
Interpreting Results (After Tests / Vanessa)
| Picture | Conclusion |
|---------|-------|
| No records | The database did not start / EL is unavailable |
| There are events, Error is absent | The database is alive, tests are running |
| The last event is session termination without errors | The tests completed successfully |
| There is an Error in event_presentation / comment | Analyze comment and metadata_presentation |
| Security warning | Switch to visual diagnostics through the GUI/screenshot |
Linking an EL Record with Code
After obtaining event_presentation and metadata_presentation:
- If
metadata_presentationcontains the name of a metadata object, callnavigate_symbolto jump to the code. - If the
commentmentions an error text or a procedure name, search the codebase for the comment text. - In the report, specify the exact module and procedure (not only the metadata object name). Format:
ОбщийМодуль.ОбработкаОшибок → ЗафиксироватьОшибку().
Correlation id and Session
If the comment field contains a session ID, HTTP request, or correlation id:
- Extract the value and keep it in the response context.
- Explicitly include it in the output:
session=...,corrId=...orhttpReq=.... - If further investigation is needed, pass these identifiers to
tech-log-analysisas filters (search_tech_logwithsession/corrId).
The goal is to preserve correlation keys for the next step without mixing EL and TL analysis in one request.
Security
- Mask full names, tax IDs, and contact details in the output.
- By default,
mode: "minimal". - Narrow
from/toto the minimum necessary period. - Do not request more than 1000 records during the initial search.
Capabilities
| Capability | Purpose |
|------------|------------|
| search_event_log | Search the event log (via ClickHouse) |
| navigate_symbol | Jump to code by metadata from an EL record |
Typical Errors
| Error | Workaround |
|--------|---------------|
| GUIDs are not from cluster_map.yaml | Read the config; if it is missing, ask the user |
| ClickHouse is unavailable | Record the reason; suggest an alternative via TL |
| Time range is too wide - timeout | Narrow the window to 15-30 minutes; reduce limit |
| No errors in the EL | Cascade: without a level filter -> narrow the window -> TL |
depends_on: []