# Mosquitto Log Files missing

**URL:** <https://discourse.nodered.org/t/mosquitto-log-files-missing/6860>\
**Category:** General\
**Created:** [15 January 2019 20:32 UTC](https://discourse.nodered.org/t/mosquitto-log-files-missing/6860 "2019-01-15T20:32:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [15 January 2019 20:32 UTC](https://discourse.nodered.org/t/mosquitto-log-files-missing/6860/1 "2019-01-15T20:32:32Z")

</div>

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??

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [15 January 2019 20:58 UTC](https://discourse.nodered.org/t/mosquitto-log-files-missing/6860/2 "2019-01-15T20:58:31Z")

</div>

The mosquitto application has its own forum.

> **[Eclipse Community Forums: Mosquitto | The Eclipse Foundation](http://www.eclipse.org/forums/index.php?t=thread&frm_id=270)**
>
> The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 January 2019 21:26 UTC](https://discourse.nodered.org/t/mosquitto-log-files-missing/6860/3 "2019-01-15T21:26:14Z")

</div>

`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.

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [16 January 2019 04:39 UTC](https://discourse.nodered.org/t/mosquitto-log-files-missing/6860/4 "2019-01-16T04:39:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 January 2019 07:11 UTC](https://discourse.nodered.org/t/mosquitto-log-files-missing/6860/5 "2019-01-16T07:11:41Z")

</div>

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