Can we do automatically roll over the Apache logs at specific times without having to shut down and restart the server?
Can we do automatically roll over the Apache logs at specific times without having to shut down and restart the server?
Answer
Yes Use CustomLog and the rotatelogs programs Add following line in httpd.conf file. CustomLog “| /path/to/rotatelogs /path/to/logs/access_log.%Y-%m-%d 86400″ combined
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website