Jump to content
php.lv forumi

Apache2 log failu rotācija.


Sasa

Recommended Posts

Vēlos saviem virtuālo hostu log failiem uzlikt rotāciju izmantojot linux logrotate demonu. Atradu šādu rakstiņu http://www.ducea.com/2006/06/06/rotating-linux-log-files-part-2-logrotate/ izlasot nesaprotu vienu momentu kāpēc tur ir vēl tas apache restarts?

Idejiski ja man vajag pielikt savu log failu rotāciju tad man attiecīgi jāpapildina /etc/logrotate.d/apache2  ar lavu logu atrašanos vietu un rotācijas parametriem?

 

PS. atradu ka Apache arī ir savs rotatelogs http://makandracards.com/makandra/1165-how-to-apache-logs-on-a-daily-basis-without-logrotate , kuru no abiem labāk/ieteicams lietot?

Edited by Sasa
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...