Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 - cronolog and/or rotatelogs2 ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
barrytrout
n00b
n00b


Joined: 17 Dec 2004
Posts: 12

PostPosted: Fri Jan 07, 2005 9:19 pm    Post subject: Apache2 - cronolog and/or rotatelogs2 ... Reply with quote

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
View user's profile Send private message
butt3r
n00b
n00b


Joined: 28 Jan 2005
Posts: 14

PostPosted: Mon Jan 31, 2005 4:48 pm    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
barrytrout
n00b
n00b


Joined: 17 Dec 2004
Posts: 12

PostPosted: Fri Feb 04, 2005 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum