Enable low-level OPC-UA logging
This page is only relevant for OPC-UA collector versions older than 2.1.0. If the OPC-UA collector version is 2.1.0 or higher, you can simply set the LogLevel to 'trace'.
Linux
- Edit the collector’s environment file: /etc/systemd/system/environments/factry-collector-<UUID>
- Add: OPC_DEBUG=debug
- Restart the collector.
- View logs: sudo journalctl -u factry-collector-<UUID>.service -f
Windows
- Stop the collector service.
- Get the API_TOKEN from the Registry (regedit) at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\factry-collector-<UUID> in Environment
- Open a command window and set environment variables:
- set OPC_DEBUG=debug
- set API_TOKEN=<API_TOKEN>
- Run the collector binary manually (no flags).
- Watch the logs in the command window.
- Restart the collector service when done.