jeudi 4 décembre 2014

Per domain error_log rotation by DA

Hello everyone,



For a couple of weeks now, I'm trying to find a way to control the rotation of the error logs stored in /var/log/httpd/domains/.

DirectAdmin Support stated in an old thread (which doesn't have the solution to my problem) that files in /var/log/httpd/ are controlled by logrotate, files in /var/log/httpd/domains/ are controlled by DA.

I send an e-mail to DA-support, but still no answer after two weeks... So 'll try it here.



These logs are rotated daily, but old ones are deleted instead of saved like example.com.error.log.1 .



Why keep the error logs instead of fixing errors you may ask?

Well, I would like to fix all errors, but if an error occurs at, let's say 11:30 PM, I have no way of knowing about those errors the next morning!



How can I get DA to treat the error logs just like the access logs (keep them for a specified amount of time)?

I have not found any files which seem to have any influence on those log-files, but they must be present somewhere.



I'm open to solutions which operate outside DA, but if possible, I prefer changes to the existing logrotation-feature.



Thank you in advance!



Jelle





Per domain error_log rotation by DA

Aucun commentaire:

Enregistrer un commentaire