/etc/logrotate.conf ====> System main log rotation file. Log rotation configuration for all the server log files are specified in this file.
/etc/logrotate.d/ ====> Installed package’s log rotate config file store in this path.
In that means if RPM package contain log rotation script for that particular package it will store under this path, /etc/logrotate.d/
# vim /etc/logrotate.conf
Edit config and details are show below,
# rotate log files weekly daily, monthly or yearly
# keep No of weeks log files worth of backlogs
# create new (empty) log files after rotating old ones
# Set date in file name while create new log rotate file.
# Make compressed log file while create new log rotate file
# Make file by date format. We should give this order. We can use `-` or `/ `
# send log rotate file to mail
# Make log rotate by file size, we use parameter like k,M,G. k = kb,M= mb, G=Gb
size “size ie 30k,2M,1G”
# Use RPM package’s log rotate script
# no packages own wtmp and btmp — we’ll rotate them here
create 0664 root utmp
create 0600 root utmp
# system-specific logs may be also be configured here.
=============================> Blass <============================