sorry, I’ve just noticed this post:
emonhub.log (364.1 KB) doesn’t cover the period when the error first occurred looks like it has a lot of noise? I’ve attached the most recent version, but I think I need to adjust the logrotate.conf file so I keep logs over a longer period?
looking at /etc/systemd/system/mqtt_input.service I think it’s not logging by default? and I need to uncomment for it to log to syslog?
[Unit]
Description=Emoncms MQTT Input Script
After=mosquitto.service mysql.service redis.service
Documentation=https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
[Service]
Type=idle
ExecStart=/usr/bin/php /var/www/emoncms/scripts/phpmqtt_input.php
# Uncomment instead of above to use standard log file, else use systemd log
# Type=forking
# ExecStart=/bin/sh -c '/usr/bin/php /var/www/emoncms/scripts/phpmqtt_input.php 2>&1 > /var/log/mqtt_input.log &'
# Restart script if stopped
Restart=always
# Wait 60s before restart
RestartSec=60
# Tag things in the log
# View with: sudo journalctl -f -u mqtt_input -o cat
SyslogIdentifier=mqtt_input
# Un-comment to pipe log to syslog
#StandardOutput=syslog
[Install]
WantedBy=multi-user.target
I can’t figure out where I need to enable logs for feedwriter? should I edit /etc/init.d/feedwriter? or the thing that calls the init script?
sorry for the shotgun approach to asking questions, would welcome any help