This page describes the tools of the web interface that show what the device is doing: crash counters, gateway monitoring, the log window of each gateway, crash logs, system logs, disk statistics, the diagnostics terminal and the export to Grafana Loki. Start from the symptom on Troubleshooting; this page explains the tools it sends you to.
Most of these tools are reserved to administrators: the System configuration form, the Write button of the gateway monitoring and the factory settings. The Terminal box needs the Terminal access right.
online, offline, pending (gateway connecting, point not confirmed yet) or a message of the driver starting with !, for example !timeout. The column is hidden by default: open Live table › Columns and tick Status and Status date. See Addresses.
Gateways › Gateway monitoring opens a live table of the traffic of the device: new values received from the drivers, values written by routes, and the reads and writes you trigger from the window itself. The newest line is at the top. Lines are coloured by event: violet for a route, blue for a read, green for a successful read, red for a write.
| Column | Content |
|---|---|
| Event | event (new value from a driver), route, read, read success, read error, write, write success, write_error. |
| Date | Date of the value, to the millisecond. |
| Name | Id and name of the address. |
| Gateway | Id and name of its gateway. |
| Value | The value. Long objects are shortened; hover to see more. |
| Route | For a route line: id and name of the route. |
| Type | Type of the write. |
| Source, Previous, Delta, Period, Latency, Value string | Hidden by default (column menu): source address of a route, previous value, difference with the previous value, time since the previous value, time to answer a read or a write. |
The toolbar:
Every column can be filtered: filter Name on one address, or Event on route, to follow one data flow. The window only records while it is open.
To follow one route step by step, use the Listen window of the routing table instead: see Troubleshooting routes.
Open the menu ☰ of a gateway line and choose Logs. The window lists the drivers and shows the live log lines of the gateway, newest first. Two settings per gateway can be changed in the list:
| Setting | Values | Effect |
|---|---|---|
| level | error (default), warn, info, log |
How much the driver writes: error real failures only, warn problems it recovered from, info normal operations (started, connected), log every frame or poll. Applied at once, without restarting the gateway. |
| storage | none (default), ram, file |
Where the lines are kept. With none you only see the lines that arrive while the window is open. ram keeps the recent lines in memory, file writes them to the storage of the device. Changing the storage restarts the gateway. |
Export logs, in the same menu ☰, downloads the stored log. It is greyed out while the storage is none.
A typical session:
info (or log for frame-level detail).ram and use Export logs to send them to support.error and storage back to none.A verbose level written to a file wears the flash storage of the device. Never leave
logwithfilestorage after the diagnosis.
Several drivers also have a Monitor in the menu of their address table: a live view of the frames sent and received on the bus (for example Modbus, BACnet, M-Bus, N2). It is the best tool to check wiring and addresses. See the page of the driver.
When a process of the device stops unexpectedly (a driver, a logger, a logic circuit), the device restarts it and records a crash log: date, source, type and message.
A crash that comes back after each restart usually points to a wrong configuration or an unreachable device: read the message, then raise the log level of the gateway (section 3) to see what happens just before.
Some drivers restart their process when the connection fails. When several gateways share a Cluster ID, they share one process and restart together: keep a gateway that crashes on Cluster ID
0while you investigate. See Gateway clusters.
System › System logs shows the logs of the device software, process by process.
Without Save logs on disk, only the last lines kept in memory exist: reproduce the problem, then read the logs at once.
When a routing function writes to the console (console.log in a route function), the line is tagged with the name of the route, for example [route Boiler setpoint], so you can find it in the logs of the supervision process. A route that cannot start because its configuration is invalid writes route start FAILED (skipped bad route) with its id.
System configuration › Disk / Logs › Save logs on disk writes the logs of the device software to its storage. It is off by default.
Turn it on only while you look for a problem that you cannot reproduce on demand, for example a crash at night. As long as it is on, the device reminds you once per login that writing logs continuously reduces the lifespan of flash storage (SD card, eMMC). Administrators can turn it off from the reminder with Disable logs, or keep it with Keep enabled.
See System configuration, Disk / Logs.
System configuration › Disk / Logs › Activate disk monitor records which files the device software writes to the storage, and how much. When it is on, the Disk usage box of the System home page shows a statistics button. Use it when the storage fills up or when you suspect that a log, a logger or a Store value policy writes too often (see Log and Store value policies).
The Terminal box of the System home page runs a diagnostics console: ping, traceroute, dns <host>, tcp <host> <port> to test a TCP port from the device, tls <host> [port] to check a certificate. Type help for the list. See Network diagnostics. The terminal is not available on Windows installations.
The device can send its logs to a Grafana Loki server, also when Save logs on disk is off: useful to keep the history of several devices in one place without wearing their storage. See System configuration, Grafana Loki.
The same information is available through the API (read rights are enough):
gateways.getStats() counts the state changes of each gateway since the last start of the device software: a high disconnected count with a recent date means a reconnect loop.gateways.getCrashLog(gatewayKey) returns the last crash of a gateway; system.getCrashLogs lists all of them.gateways.testGateway(gatewayKey) checks that the device configured in a gateway answers, without stopping or restarting the gateway. Available for the KNX, Modbus (TCP connection to the host and port), SMTP and IEC 104 drivers only.gateways.getGatewayLogLevel / setGatewayLogLevel and getDriverLogs do what the Logs window does. The log files are also served over HTTP: see Driver logs.See Peers API: gateways.
When you write to support@weble.ch, attach:
ram, level info or log, reproduce the problem, then ☰ › Export logs.