Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Log problems

Hi there,

I need some help with my log configuration.

I have these 2 files accessible:
mosquitto.conf
conf.d/log.conf

The first one is as follows:

# Place your local configuration in /etc/mosquitto/conf.d/
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
#log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d

The second one:
#log for connection messages, include entries when clients are connected and disconnected
connection_messages true
#log file for mosquitto
log_dest file /home/sysadmin/mosquitto/mosquitto.log
#log options
log_timestamp true
#log_types all


I can't get the  /home/sysadmin/mosquitto/mosquitto.log file written, it is empty, the errors and connections are logged in /var/log/messages.

When I reload the service I get: 
Nov 17 16:45:30 dev-res-sdp-01 systemd[1]: Reloading LSB: Mosquitto MQTT broker.
Nov 17 16:45:30 dev-res-sdp-01 mosquitto[15695]: 1447796730: Reloading config.
Nov 17 16:45:30 dev-res-sdp-01 mosquitto[31274]: Reloading mosquitto: [  OK  ]
Nov 17 16:45:30 dev-res-sdp-01 systemd[1]: Reloaded LSB: Mosquitto MQTT broker.

How do I need to modify my configuration to get the log file written???

Thanks!!!




Back to the top