Actions
tickets #174745
openTSP: no logrotation
Start date:
2024-12-24
Due date:
% Done:
0%
Estimated time:
Description
/srv/www/travel-support-program/log/production.log doesn't get rotated automatically.
I just moved and compressed it manually at 1.4 GB, but a logrotate config would be better ;-)
Updated by cboltz 3 months ago
We need a file /etc/logrotate.d/tsp that rotates the log and restarts the services (actually reload should hopefully be enough), and a file.managed that installs that logrotate.d/tsp file.
Currently we don't have any logrotate config in our salt repo, so you'll have to look at your local /etc/logrotate.d/ and /usr/etc/logrotate.d/ files for some examples ;-)
Updated by cboltz 3 months ago
Most log lines are messages like:
D, [TIMESTAMP] DEBUG -- : Delayed::Backend::ActiveRecord::Job Load (1.5ms)
There are a few exceptions / other log entries, see
grep -v 'DEBUG -- : .*Delayed::Backend::ActiveRecord::Job Load' /srv/www/travel-support-program/log/production.log
Actions