How can I remove the old messages from May?
There are two ways. If it was up to me, I'd determine the importance of the
- Shutdown syslog/rsyslog,
sudo vi /var/log/messages, and remove the lines from May. Then start up syslog/rsyslog again.
- Be patent, and allow `logrotate (8) to rotate the log for you.
It sounds like you added some duplicate lines to your logrotate configuration.
The file /var/log/messages (and most files under /var/log) should be rotated by
/etc/logrotate.d/syslog (Or a similar file under /etc/logrotate.d/. Do a
grep /var/log/messages /etc/logrotate.d/* to be sure).
There should be no need to add /var/log/messages to the file at /etc/logrotate.conf .