framework_eng/skills/tool-usage/diagnostics/tech-log-analysis/SKILL.md
Diagnostics of 1C tech log: EXCP, SQL, locks
npx skillsauth add steelmorgan/1c-agent-based-dev-framework tech-log-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The Tech Log loads the system. Enable it selectively, with the minimum set of events. Always restore the configuration after diagnostics.
For Vanessa, the Tech Log is the last diagnostic source; first use event-log-analysis and visually check UI blockers.
For errors and auditing user actions, use event-log-analysis.
| Trigger | Action |
|---------|----------|
| Slow query - need to find SQL | search_tech_log with name: "DBMSSQL" / "DBPOSTGRS" |
| Locks, deadlock | search_tech_log with name: "TLOCK" / "TDEADLOCK" / "TTIMEOUT" |
| Platform exception is not in the event log | search_tech_log with name: "EXCP" |
| Long server call | search_tech_log with name: "CALL" or "SCALL" |
| Tech Log status is unknown | logc_get_techlog_config - read the configuration |
| Tech Log is not running | Full cycle (see algorithm below) |
Unified algorithm for passive mode (waiting for reproduction) and active mode (running a test).
1. Save the configuration
logc_save_techlog()
Returns backup_id - keep it for step 7.
2. Configure events
logc_configure_techlog(
location: "/var/log/1c/techlog",
history: 24,
events: ["EXCP", "DBMSSQL", "TLOCK", "TDEADLOCK"]
)
3. Check that collection is running
logc_get_actual_log_timestamp()
4. Reproduce the problem / wait for reproduction
5. Smart polling for log readiness
Up to 10 attempts with a 3-5 second pause: logc_get_actual_log_timestamp() >= target_time. If it does not advance, inform the user and do not draw conclusions from an incomplete window.
6. Read the records
search_tech_log(
from: "2025-02-11T14:00:00Z",
to: "2025-02-11T14:15:00Z",
name: "DBMSSQL",
min_duration: 1000
)
7. Restore the configuration
logc_restore_techlog(backup_id: "...")
8. Confirm the status to the user: Tech Log restored / Tech Log disabled / Minimal profile (events: ...).
Steps 1 and 7 are mandatory. Never leave the Tech Log enabled after diagnostics without explicit agreement.
Tech Log already configured by an administrator - read only:
logc_get_techlog_config -> make sure the required events are present.logc_get_actual_log_timestamp -> collection is current.search_tech_log -> read the records.Urgent shutdown (disk is filling up): logc_disable_techlog(). After the issue is resolved, use logc_restore_techlog(backup_id).
Minimal monitoring (instead of full shutdown, only by agreement): events ["EXCP", "CONN"]. Record the active events and the responsible person in the response.
| Event | When to use |
|---------|--------------------|
| EXCP | Errors not visible in the event log |
| DBMSSQL | Slow MS SQL queries |
| DBPOSTGRS | Slow PostgreSQL queries |
| TLOCK | Lock conflicts |
| TDEADLOCK | Deadlocks |
| TTIMEOUT | Lock timeouts |
| CALL / SCALL | Slow server calls |
| CONN | Connection issues |
| SDBL | Translating queries to SQL |
Standard set: ["EXCP", "DBMSSQL", "TLOCK", "TDEADLOCK"]
| Capability | Purpose |
|------------|------------|
| search_tech_log | Search Tech Log records |
| logc_get_techlog_config | Read the current Tech Log configuration |
| logc_save_techlog | Save the configuration before changing it |
| logc_configure_techlog | Configure events, path, retention period |
| logc_get_actual_log_timestamp | Check that collection is running |
| logc_restore_techlog | Restore the saved configuration |
| logc_disable_techlog | Disable the Tech Log |
| navigate_symbol | Navigate to code by context from a Tech Log record |
See references/scenarios.md for incident classification, required identifiers, timeline rules, and output template.
| Mistake | Workaround |
|--------|---------------|
| Forgot logc_save_techlog before configuring | Ask the user for the current configuration |
| Tech Log is not active after configure | The platform requires restarting services |
| logc_get_actual_log_timestamp does not update | The service was not restarted or the location is wrong |
| Too many events - the disk fills up | Limit the event set; reduce history |
| search_tech_log returns nothing | Check the time window; the event must be after Tech Log was enabled |
development
1C server maintenance webhooks: container restart and external component cache cleanup
development
Interactive DAP debugging of a single BSL procedure
tools
Rules for using RLM tools for project search and navigation in 1C/BSL
development
Creates web applications and routes on Winow (a web server on OneScript and Autumn). Use when working with a web server on OneScript, routing, or Winow controllers.