Mosquitto Log Files missing

#1

I have been chasing down some duplicate client names on my MQTT devices, and frequently looking at the logfile: /var/log/mosquitto/mosquitto.log.

However, today I noticed that the log file is simply missing. No file. The only thing I've touched in the mosquitto.conf file is the log_type lines. Here's the latest:

pi@Marvin:/etc/mosquitto $ cat mosquitto.conf
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example

pid_file /var/run/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log
# You can choose which event types to log.
# By default error, information, notice and warning events are logged.
#
log_type error
log_type warning
log_type notice
log_type informaton

#For debugging, use:
#log_type all


include_dir /etc/mosquitto/conf.d

I've tried restarting the broker Pi (the same one with Node-Red) to no avail.
Does anyone have a clue where I might try to find why there is no log file?

Thanks,
Steve Mann

Update, I just realized that mosquitto isn't running. pidof mosquitto returns nothing.
A hard shutdown and restart of the Pi did nothing.

Help??

#2

The mosquitto application has its own forum.

#3

sudo systemctl status mosquitto
may well help. You likely have something illegal in the conf file.
Possible the typo in log_type informaton may be it.

#4

Wow, good eye. I went back to last weeks SD clone to recover, but I'll plug this SD back in to see if that was stopping mqtt from starting.

OTOH, I had not changed the log type for a few days and the problem just appeared this afternoon. (Mqtt was working all morning).

Steve

#5

Is it possible that you had changed the log file but not restarted mosquitto?