So in around 7hrs I have 3 deamon.log files
pi@emonpi(ro):~$ ls -la /var/log/
total 8072
drwxr-xr-x 10 root root 560 Jan 5 19:17 .
drwxr-xr-x 12 root root 4096 Nov 7 16:52 ..
drwxr-xr-x 2 root adm 60 Jan 5 13:34 apache2
-rw-r----- 1 root adm 106570 Jan 5 20:06 auth.log
-rw-r--r-- 1 root root 7630 Jan 5 13:34 boot.log
-rw------- 1 root utmp 0 Jan 5 13:34 btmp
-rw-r----- 1 root adm 665078 Jan 5 20:06 daemon.log
-rw-r----- 1 root adm 1625546 Jan 5 19:17 daemon.log.1
-rw-r----- 1 root adm 1680601 Jan 5 17:17 daemon.log.2
-rw-r----- 1 root adm 1014 Jan 5 13:34 debug
-rw-rw-rw- 1 root root 810 Jan 5 13:35 emoncms.log
drwxr-xr-x 2 emonhub root 100 Jan 5 19:17 emonhub
drwxr-xr-x 2 pi root 60 Jan 5 13:34 emonpilcd
-rw-r----- 1 root adm 47222 Jan 5 20:06 kern.log
drwxr-xr-x 2 pi pi 80 Jan 5 19:17 logrotate
-rw-r----- 1 root adm 46129 Jan 5 20:06 messages
drwxr-xr-x 2 mosquitto mosquitto 60 Jan 5 13:34 mosquitto
-rw-rw-rw- 1 root root 0 Jan 5 13:34 mqtt_input.log
drwxr-xr-x 2 mysql adm 60 Jan 5 13:34 mysql
-rw-rw-rw- 1 root root 0 Jan 5 13:34 mysql.log
drwxr-xr-x 2 openhab openhab 80 Jan 5 13:35 openhab
drwxr-xr-x 2 redis redis 60 Jan 5 13:34 redis
-rw-rw-rw- 1 root root 0 Jan 5 13:34 service-runner.log
-rw-r----- 1 root adm 674501 Jan 5 20:06 syslog
-rw-r----- 1 root adm 1649195 Jan 5 19:17 syslog.1
-rw-r----- 1 root adm 1704016 Jan 5 17:17 syslog.2
-rw-r----- 1 root adm 20298 Jan 5 20:06 ufw.log
-rw-rw-r-- 1 root utmp 3456 Jan 5 20:03 wtmp
and on inspecting the current file I can find only a handful of non-mqtt lines among the pages and pages of mqtt.
pi@emonpi(ro):~$ less /var/log/daemon.log
Jan 5 19:17:02 emonpi systemd[1]: Stopping LSB: Save the current clock & ntp drift on read-only filesystem...
Jan 5 19:17:02 emonpi ntp-backup[4426]: Running ntp-backup to save current clock data.
Jan 5 19:17:02 emonpi systemd[1]: Starting LSB: Save the current clock & ntp drift on read-only filesystem...
Jan 5 19:17:02 emonpi ntp-backup[4441]: Starting ntp-backup.
Jan 5 19:17:02 emonpi systemd[1]: Started LSB: Save the current clock & ntp drift on read-only filesystem.
Jan 5 19:17:02 emonpi php[1832]: emon/gasMon/pulsecount 18.77
Jan 5 19:17:02 emonpi php[1832]: emon/gasMon/uptime 271915000
Jan 5 19:17:02 emonpi php[1832]: emon/gasMon/rssi -63
Jan 5 19:17:03 emonpi php[1832]: emon/emontx/Vrms 238.74
Jan 5 19:17:03 emonpi php[1832]: emon/emontx/power1 635
Jan 5 19:34:42 emonpi php[1832]: emon/gasMon/rssi -63
Jan 5 19:34:43 emonpi ntpd[1014]: frequency file /var/lib/ntp/ntp.drift.TEMP: Read-only file system
Jan 5 19:34:47 emonpi php[1832]: emon/emonpi/1 0
Jan 5 19:34:47 emonpi php[1832]: emon/emonpi/2 0
Jan 5 19:35:13 emonpi php[1832]: emon/gasMon/uptime 273005000
Jan 5 19:35:13 emonpi php[1832]: emon/gasMon/rssi -63
Jan 5 19:35:13 emonpi Node-RED[473]: 5 Jan 19:35:13 - [error] [wunderground:e6315c7a.2f9cf] [object Object]
Jan 5 19:35:17 emonpi php[1832]: emon/emonpi/1 0
Jan 5 19:35:17 emonpi php[1832]: emon/emonpi/2 0
Jan 5 20:05:12 emonpi php[1832]: emon/gasMon/uptime 274805000
Jan 5 20:05:12 emonpi php[1832]: emon/gasMon/rssi -64
Jan 5 20:05:13 emonpi Node-RED[473]: 5 Jan 20:05:13 - [error] [wunderground:e6315c7a.2f9cf] [object Object]
Jan 5 20:05:14 emonpi php[1832]: emon/emonpi/1 0
Jan 5 20:05:14 emonpi php[1832]: emon/emonpi/2 0
I don’t think mixing low priority/high frequency messages in the same log file as low frequency warnings from multiple sources is a good idea, I think the issue is that the mqtt_input daemon should not be producing so many log entries, but to remove those log messages is counter-productive and not an improvement to the previous method as these are being rotated out so fast that any other service’s messages will be lost.
@glyn.hudson Is there a way to specify a service specific logfile rather than funneling all messages to the one daemon.log?
If not I’d be inclined to revert to the old system until the mqtt_input is stable enough to warrant reducing the logged messages.
There are by far, more services still in the old format than the new, even on the emonSD image the old out number the new by over 4:1
pi@emonpi(ro):~$ ls -la /etc/systemd/system
total 56
drwxr-xr-x 12 root root 4096 Jan 5 12:58 .
drwxr-xr-x 6 root root 4096 Oct 30 01:21 ..
-rw-r--r-- 1 root root 1551 Sep 18 2015 [email protected]
lrwxrwxrwx 1 root root 40 Nov 21 2015 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root 34 Nov 21 2015 dhcpcd5 -> /lib/systemd/system/dhcpcd.service
drwxr-xr-x 2 root root 4096 Nov 21 2015 dhcpcd.service.d
drwxr-xr-x 2 root root 4096 Nov 21 2015 getty.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 [email protected]
drwxr-xr-x 2 root root 4096 Nov 21 2015 halt.target.wants
-rw-r--r-- 1 root root 1063 Jan 5 12:58 mqtt_input.service
drwxr-xr-x 2 root root 4096 Jan 5 12:58 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 poweroff.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 rc-local.service.d
drwxr-xr-x 2 root root 4096 Nov 21 2015 reboot.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 sockets.target.wants
lrwxrwxrwx 1 root root 31 Nov 21 2015 sshd.service -> /lib/systemd/system/ssh.service
drwxr-xr-x 2 root root 4096 Nov 21 2015 sysinit.target.wants
lrwxrwxrwx 1 root root 35 Nov 21 2015 syslog.service -> /lib/systemd/system/rsyslog.service
pi@emonpi(ro):~$ ls -la /etc/systemd/system
total 56
drwxr-xr-x 12 root root 4096 Jan 5 12:58 .
drwxr-xr-x 6 root root 4096 Oct 30 01:21 ..
-rw-r--r-- 1 root root 1551 Sep 18 2015 [email protected]
lrwxrwxrwx 1 root root 40 Nov 21 2015 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root 34 Nov 21 2015 dhcpcd5 -> /lib/systemd/system/dhcpcd.service
drwxr-xr-x 2 root root 4096 Nov 21 2015 dhcpcd.service.d
drwxr-xr-x 2 root root 4096 Nov 21 2015 getty.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 [email protected]
drwxr-xr-x 2 root root 4096 Nov 21 2015 halt.target.wants
-rw-r--r-- 1 root root 1063 Jan 5 12:58 mqtt_input.service
drwxr-xr-x 2 root root 4096 Jan 5 12:58 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 poweroff.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 rc-local.service.d
drwxr-xr-x 2 root root 4096 Nov 21 2015 reboot.target.wants
drwxr-xr-x 2 root root 4096 Nov 21 2015 sockets.target.wants
lrwxrwxrwx 1 root root 31 Nov 21 2015 sshd.service -> /lib/systemd/system/ssh.service
drwxr-xr-x 2 root root 4096 Nov 21 2015 sysinit.target.wants
lrwxrwxrwx 1 root root 35 Nov 21 2015 syslog.service -> /lib/systemd/system/rsyslog.service
Who knows, there maybe good reason other softwares are not rushing to take the plunge just yet.