Skip to content

Troubleshooting using Storm worker logs


Sometimes it can be difficult to really understand what is going on when setting up a new Storm topology/channel. In most cases, the first thing to do is watching the logs. We will see how it possible to increase Storm workers log verbosity to properly troubleshoot.

What to do

Locating the worker log file

On a production cluster,

  • Open the Storm Web UI (see for hosts and port), then click on the link to the chosen topology

  • Identify the storm supervisor host(s) in charge of running the topology, and the associated slot number, in the "Worker Resources" table in the topology page of the Storm UI

  • on this supervisor host, log as sudoer and go to /var/log/punchplatform/storm/workers.artifacts//slot

  • the logs are in the "worker.log" file. Each time the worker (re)starts, a "Launching worker for " string appears.

On a standalone setup, the 'workers.artifacts' folder is located in <standaloneSetupDir>/external/apache-storm-x.y.z/logs/ folder.

Tuning/ the log levels

By default, when a topology is submitted to a Storm cluster, the logging configuration file loaded is named worker.xml. It can be found on at



Cluster mode (where [setups_root] is define in punchplatform-deployment.settings)

[setups_root]/apache-storm-1.2.2/log4j2/worker.xml   # often, setups_root is /data/opt

This file is shared across all running Storm topologies, and taken into account dynamically, even by already running topologies, so we definitely do NOT want to modify it we have any other choice. The best approach to debug a topology is to use another logging file that we can modify to be as verbose as desired, by running the topology by hand in foreground in the operator environment.

To do so, we provide a file called logback-topology.xml. It can be found at the following locations:



Cluster mode


The best way to see what is happening is to run your topology in foreground mode. The logback-topology.xml file will be used by default instead of worker.xml. On either standalone or cluster platform, let\'s run an example with apache:

channelctl configure tenants/mytenant/etc/channel_config/apache_httpd_channel.json
punchlinectl tenants/mytenant/channels/apache_httpd/single_topology.json

start-foreground topology 'single_topology.json'...
java -server -Xms128m -Xmx128m -Dpunchplatform.log.dir=/Users/gmfmi/punchplatform
/standalone/punchplatform-standalone-4.0.1-SNAPSHOT/logs -Dlogging.sensitivity=S3 -Dlog4j.configurationFile=/Users/gmfmi/
punchplatform/standalone/punchplatform-standalone-4.0.1-SNAPSHOT/bin/logback-topology.xml -Dpunchplatform.configurationFile
=/Users/gmfmi/punchplatform/standalone/punchplatform-standalone-4.0.1-SNAPSHOT/conf/ -cp [jars] start  -m local -t single_topology.json

Now, you should see your topology\'s logs in this interactive terminal. To stop the topology, press Ctrl + C.

Increase verbosity

If you need to some logs from lower logging level, you can change logging value set in the logback-topology.xml file. For example, if you want to see TRACE logs from you Storm Spouts, update your settings this way:

    <logger name="" level="TRACE"/>

To get a detailed description of available loggers, see the logging configuration guide<LoggingConfiguration>{.interpreted-text role="ref"}.