mosquitto_sub with timestamp
mosquitto_sub is an MQTT version 3.1 client for subscribing to topics.
It works pretty well except it does not support to display a timestamp of the events.
The following “simple” command subscribes to all topics of the mosquitto MQTT server and executes the date command for each message.
Update:
Thanks to Stewart C. Russell, who suggested to use ts
from moreutils
package, it can be achieved with a shorter expression: