Today I found a cPanel CentOS 7 server with empty log files :
-rw------- 1 root root 0 Aug 18 05:57 cron
-rw------- 1 root root 0 Aug 18 05:57 maillog
-rw------- 1 root root 0 Aug 18 05:57 messages
-rw------- 1 root root 0 Aug 18 05:57 secure
Found a quick solution :
rm -f /var/lib/rsyslog/imjournal.state
service rsyslog restart
Server reboot and service restarts did not help however the above worked..
Voila the logs started working…….