View previous topic :: View next topic |
Author |
Message |
barrytrout n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Dec 2004 Posts: 12
|
Posted: Fri Jan 07, 2005 9:19 pm Post subject: Apache2 - cronolog and/or rotatelogs2 ... |
|
|
I have tried both cronolog and rotatelog2.
I would really like to rotate my logs without a restart and logrotate.
But the process that gets started by Apache doesn't ]ever create the target file.
I see the process in the process list as root.
Anyone have any ideas?[[/list] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
butt3r n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/188202964242111d35c9164.gif)
Joined: 28 Jan 2005 Posts: 14
|
Posted: Mon Jan 31, 2005 4:48 pm Post subject: |
|
|
I'm setting this up too.
I am currently using the errorlog for my tests
using apache2.
I got it to create the target file in /var/log/apache2/ by putting this in my apache2.conf file
note:the location of logrotates2 is different in gentoo than in apache2 docs
Code: |
###ErrorLog logs/error_log
ErrorLog "|/usr/sbin/rotatelogs2 /var/log/apache2/errors.%m-%d-%Y-%H_%M_%S 86400"
|
the first line should be there already to define the current log.I commented it out.
The second line creates a log in /var/log/apache2/ named errors.month.day.year.hour.minute.second that it was created.
86400 is the time in seconds until the log is rotated.According to the docs on apache website this should be 1 day.
usefull docs here:
http://httpd.apache.org/docs-2.0/programs/rotatelogs.html
or man logrotates2
hope this helps ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
barrytrout n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Dec 2004 Posts: 12
|
Posted: Fri Feb 04, 2005 3:41 pm Post subject: |
|
|
Figured it out.
My virtual host did not make the virtualname.
Apache stilled displayed the pages .. started the rotatelog process ... but never actually created the logs.
Once I correct this oversight everything worked perfert.
I wish Apache would of done some complaining instead of acting werid. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|