This is my logrotate config:/var/log/glusterfs/*.log /var/log/glusterfs/bricks/*.log /var/log/glusterfs/bricks/*.log.* {  sharedscripts  daily  rotate 3  copytruncate  size 100M  missingok  compress  delaycompress  ifempty  postrotate  /usr/bin/killall -HUP glusterfs > /dev/null 2>&1 || true  /usr/bin/killall -HUP glusterd > /dev/null 2>&1 || true  endscript}This is the directory:username@server:/var/log/glusterfs/bricks$ lltotal 405980-rw------- 1 root root         0 Dec 23 00:05 be-data.log-rw------- 1 root root         1 Dec 29 09:38 be.log.1-rw------- 1 root root         0 Dec 25 11:24 nl.log-rw------- 1 root root         0 Dec 29 09:49 nl.log.1.1-rw------- 1 root root         0 Dec 29 09:50 nl.log.1.1.1-rw------- 1 root root         0 Dec 29 09:55 nl.log.1.1.1.1-rw------- 1 root root         0 Dec 29 09:55 nl.log.1.1.1.1.1-rw------- 1 root root         0 Dec 29 09:55 nl.log.1.1.1.1.1.1-rw------- 1 root root         0 Dec 29 09:55 nl.log.1.1.1.1.1.1.1-rw------- 1 root root         0 Dec 29 09:55 nl.log.1.1.1.1.1.1.1.1-rw------- 1 root root         0 Dec 29 10:08 nl.log.1.1.1.1.1.1.1.1.1-rw------- 1 root root         0 Dec 29 10:08 nl.log.1.1.1.1.1.1.1.1.1.1-rw------- 1 root root         0 Dec 29 10:08 nl.log.1.1.1.1.1.1.1.1.1.1.1-rw------- 1 root root 368402432 Dec 29 10:08 nl.log.1.1.1.1.1.1.1.1.1.1.1.1-rw------- 1 root root    610304 Dec 23 00:05 bo.log.1-rw------- 1 root root    860160 Dec 23 00:05 bricks.log.1-rw------- 1 root root    589824 Dec 23 00:05 other.log.1What I can see:Logs are not compressedLogs are larger than 100MBCount does not workEmpty log files are present, I do not want empty log files which are rotatedHow should my config of logrotate be to solve all the issues described above?
Logrotate not working as expected
logrotate