Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
180 Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Logs

ThingsBoard Edge writes all runtime output to log files on disk. Reading and configuring these logs is the first step in diagnosing any issue — connection failures, rule engine errors, and synchronization problems all leave traces here.

Regardless of the deployment type, Edge logs are stored at:

/var/log/tb-edge/

The main log file is tb-edge.log. Rotated logs follow the pattern tb-edge.YYYY-MM-DD.N.log.

Follow the log output in real time:

Terminal window
tail -f /var/log/tb-edge/tb-edge.log

Filter for errors only:

Terminal window
cat /var/log/tb-edge/tb-edge.log | grep ERROR

ThingsBoard Edge uses Logback for logging. You can enable or disable logging for any class or package by editing logback.xml.

Edit the configuration file at:

/usr/share/tb-edge/conf/logback.xml

Example logback.xml with common logger patterns:

<!DOCTYPE configuration>
<configuration scan="true" scanPeriod="10 seconds">
<appender name="fileLogAppender"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/var/log/tb-edge/tb-edge.log</file>
<rollingPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>/var/log/tb-edge/tb-edge.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<maxHistory>30</maxHistory>
<totalSizeCap>3GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="org.thingsboard.server" level="INFO" />
<logger name="org.thingsboard.js.api" level="TRACE" />
<logger name="com.microsoft.azure.servicebus.primitives.CoreMessageReceiver" level="OFF" />
<root level="INFO">
<appender-ref ref="fileLogAppender"/>
</root>
</configuration>

Each <logger> element targets a class or package by name and sets its log level:

Level What is logged
TRACE Most detailed — every method call and data value
DEBUG Diagnostic information useful during development
INFO General operational messages (default)
WARN Unexpected conditions that do not stop execution
ERROR Failures that require attention
OFF Logging disabled for this class or package

Changes to logback.xml are picked up automatically within 10 seconds — no restart required.

To log the slowest and most frequently called rule nodes, add the following logger:

<logger name="org.thingsboard.server.service.queue.TbMsgPackProcessingContext" level="DEBUG" />

This produces output like:

2021-03-24 17:01:21,023 [tb-rule-engine-consumer-24-thread-3] DEBUG ...TbMsgPackProcessingContext
- Top Rule Nodes by max execution time:
- [Main][3f740670-...] max execution time: 1102. [RuleChain: Thermostat|RuleNode: Device Profile Node]
- [Main][3f6debf0-...] max execution time: 1. [RuleChain: Thermostat|RuleNode: Message Type Switch]

Use this when rule engine processing is slow or messages are timing out.