I am trying to the setup log for the httpd server then I write a script in /etc/logrotate.d/apache.conf
/var/log/httpd/* {
daily
rotate 3
size 20K
compress
delaycompress
}
what I understood from this file
/var/log/httpd/*
= where all the logs the stored and you want to logrotate them
daily
= when you want to rotate the log
rotate
= only 3 rotated logs should be kept
size
= when your log file size meet with this condition
compress
= make a zip file of rotated logs
delaycompress
= kind of compress don't know much
so I hit to apache server that generates a lot of logs
after the log generated
where is my log are store how it is run only on when size condition matches or else thanks for any guidance or help
one more thing when and how log rotate run why some people suggested to use cron job with logrotate