I need to rotate logs on my apache webserver once every day. I am not a big CentOS user, so followed the examples in the docs for piped logs, but started to receive an error because bin/rotatelogs did not exist. It said that it was included in the distro, but not on mine!
We used this line in the httpd.conf, after following the docs:
CustomLog "|bin/rotatelogs /var/log/httpd/access_log.%Y-%m-%d 86400" combined
Can anyone help me resolve this - I am happy to use another solution to rotate logs, but you must include step by step instructions for installation.
The must have factor in this is the files must be identifiable by date in the file name. We use them to parse stats on a monthly basis.