How to rotate log

137 views
Skip to first unread message

herve.be...@gmail.com

unread,
Oct 2, 2018, 3:13:37 PM10/2/18
to dcm...@googlegroups.com
Hi,
 
I installa dcm4che 5.14 with docker-compose. Log a rotate every day but there is no delete for old log. 

Is there is a native system to delete old logs or can i use a logorate mecanism ?

//var/local/dcm4chee-arc/wildfly/log/server.log {
daily
rotate 4
missingok
create 640 dcm4che-arc dcm4che-arc
compress
sharedscripts
}

Best regard
Hervé

Aloïs Dreyfus

unread,
Jan 16, 2019, 10:47:39 AM1/16/19
to dcm...@googlegroups.com
Hi,

I up this question because I have the same. 

Is there a way to configure dcm4chee-arc-light (5.15.1), to purge logs older than XX days, please ?

Belcikowski Herve

unread,
Nov 4, 2019, 1:26:36 AM11/4/19
to dcm...@googlegroups.com
Logrotate does the job but there is a lag because the rotation of logorate is is out of phase with wildfly. The logs go into the server.1.log file instead of on server.log.
At least the logs are deleted / compressed according to the logorate configuration.
A native solution would have been better...

Best regard

Reply all
Reply to author
Forward
0 new messages