You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andre Hübner <an...@gmx.de> on 2008/06/10 08:41:51 UTC

[users@httpd] RE: Apache Log File 2GB

Servus,

>> To rotate the logs you can use Apaches piped rotatelogs:

>> http://httpd.apache.org/docs/2.2/programs/rotatelogs.html

>> Put something like the following in your httpd.conf (or whereever your 
>> logging is define),
>> 'CustomLog "| <APACHE_HOME>/bin/rotatelogs -l 
>> <APACHE_HOME>/logs/access_log%Y-%m-%d_%H_%M_%S
>>2048M" custom'

>> That should rotate at 2 gigs.

unfortunately i have still this problem. After a while of testing and 
experimenting i have the problem that nothing is rotated. Logfile is growing 
and growing...

In httpd.conf is following:

LogLevel warn
LogFormat "%v***%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
\"%{User-Agent}i\"" combined
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog "|/usr/sbin/rotatelogs /www/logs/%Y/%m/%d/access_log 1024M" common
ErrorLog "|/usr/sbin/cronolog --symlink=/www/logs/error_log 
/www/logs/%Y/%m/%d/error_log"

I tried with 1024M for Size or 120 for time-intervall but nothing happens. 
I have just no idea, other logfiles contain no info about error etc.
What to do now?
Thanks
Andre


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] RE: Apache Log File 2GB

Posted by Arnab Ganguly <ag...@gmail.com>.
can you check any of your process got killed and the server was
restarted.Just curious if the process owner got changed in case, and the new
process owner thinks the file size starts from zero.Just check it out.
Thanks
-A

On Tue, Jun 10, 2008 at 12:11 PM, Andre Hübner <an...@gmx.de> wrote:

> Servus,
>
>  To rotate the logs you can use Apaches piped rotatelogs:
>>>
>>
>  http://httpd.apache.org/docs/2.2/programs/rotatelogs.html
>>>
>>
>  Put something like the following in your httpd.conf (or whereever your
>>> logging is define),
>>> 'CustomLog "| <APACHE_HOME>/bin/rotatelogs -l
>>> <APACHE_HOME>/logs/access_log%Y-%m-%d_%H_%M_%S
>>> 2048M" custom'
>>>
>>
>  That should rotate at 2 gigs.
>>>
>>
> unfortunately i have still this problem. After a while of testing and
> experimenting i have the problem that nothing is rotated. Logfile is growing
> and growing...
>
> In httpd.conf is following:
>
> LogLevel warn
> LogFormat "%v***%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> CustomLog "|/usr/sbin/rotatelogs /www/logs/%Y/%m/%d/access_log 1024M"
> common
> ErrorLog "|/usr/sbin/cronolog --symlink=/www/logs/error_log
> /www/logs/%Y/%m/%d/error_log"
>
> I tried with 1024M for Size or 120 for time-intervall but nothing happens.
> I have just no idea, other logfiles contain no info about error etc.
> What to do now?
> Thanks
> Andre
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>