You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current logrotate mechanism does not prevent /var/log filling up.
I propose a new mechanism that diverts the log messages from emonhub that currently end up in both daemon.log and syslog to its own log file and then rotate hourly. The rotated logs will be concatenated together to provide a daily log, rotated and retained for X days.
There are discussions ongoing on employing Log2Ram in the future, but this will work in the meantime.
This setup will leave all existing package rotation schemas alone.
Purge and reinstall rsyslog to restore default configuration
Setup rsyslog to extract emonhub messages and not put them in daemon.log or syslog 10-emonhub.conf below.
The current logrotate mechanism does not prevent
/var/log
filling up.I propose a new mechanism that diverts the log messages from emonhub that currently end up in both daemon.log and syslog to its own log file and then rotate hourly. The rotated logs will be concatenated together to provide a daily log, rotated and retained for X days.
There are discussions ongoing on employing Log2Ram in the future, but this will work in the meantime.
This setup will leave all existing package rotation schemas alone.
10-emonhub.conf
below.sudo truncate -s 0 /var/log/daemon.log
sudo systemctl restart rsyslog.service
/etc/logrotate.d/emonhub
/etc/rsyslog.d/10-emonhub.conf
/etc/logrotate.d/emonhub
The text was updated successfully, but these errors were encountered: