Have you tried the logrotate manual (#man logrotate )? There's a ton of information in there. Also, try this article which explains a lot about setting up your log rotation:
Hi,
As already said you can try a man on logrotate.This one is just an example.Here the messages is rotated twice eg. messages.1 , messages.2 like that.Even the size can be specified.
The other way is to configure the files in the directory /etc/logrotate.d
Here each file holds a specfic daemon logs.But make sure that in the /etc/logrotate.conf this is enabled like this
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.