httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei-min Lee <weimin.b....@gmail.com>
Subject Re: AW: [users@httpd] rotatelogs.exe keeps one giant file [wd-vc]
Date Thu, 25 Sep 2014 22:10:27 GMT
What's the date/time stamp on the one error log? As Kurt said, and from
what I read online, files are only generated when there's output for that
log. I think 2.4.10 has a -c option to generate a file even if there's no
output.

Your directory list shows that there are error logs with the date stamp,
are those not the result of rotatelogs?

~Sent from my HTC PN07120~
On Sep 25, 2014 2:24 AM, "Bremser, Kurt (AMOS Austria GmbH)" <
Kurt.Bremser@allianz.at> wrote:

> Hi!
>
> The behaviour of the ErrorLog is as designed. rotatelogs does not create a
> file when nothing is logged during that given interval.
>
> Some ideas about the big file issue:
> - are you sure you have no additional ErrorLog or CustomLog directives?
> - maybe you have an additional apache instance with the old configuration
> running (unlikely, but...)?
> - are the big files current or leftovers from before (unlikely, but...)?
>
> Kurt Bremser
> AMOS Austria
>
> Newton was wrong. There is no gravity. The Earth sucks.
> ________________________________________
> Von: Jochen Wiedmann [jochen.wiedmann@gmail.com]
> Gesendet: Donnerstag, 25. September 2014 08:15
> An: users@httpd.apache.org
> Betreff: [users@httpd] rotatelogs.exe keeps one giant file [wd-vc]
>
> Hi,
>
> like with a lot of other people, our log files grew too big over time.
> So we decided to give rotatelogs a try (I am talking about Apache
> Httpd 2.2 on Windows Server 2003 R2, 64 Bit.) Here's the relevant
> excerpt from httpd.conf:
>
> $ grep rotatelogs httpd.conf
> ErrorLog "|C:/Prg/Apache2.2/bin/rotatelogs.exe -l -f
> C:/Prg/Apache2.2/logs/error.%Y.%m.%d.log 86400"
>     CustomLog "|C:/Prg/Apache2.2/bin/rotatelogs.exe -l -f
> C:/Prg/Apache2.2/logs/access.%Y.%m.%d.log 86400" common
>
> However, looking into the logs directory, I see the files listed
> below. Two things strike me as odd:
>
> a) There is a daily entry for the access.log. Good. But, what about
> the error.log?
> b)There's still a gian
>
> $ ls -CAl | awk '{print $1 " " $5 " " $9}'
> total
> -rwxrwx---+ 182734 access.2014.09.15.log
> -rwxrwx---+ 203230 access.2014.09.16.log
> -rwxrwx---+ 201600 access.2014.09.17.log
> -rwxrwx---+ 205652 access.2014.09.18.log
> -rwxrwx---+ 201460 access.2014.09.19.log
> -rwxrwx---+ 201600 access.2014.09.20.log
> -rwxrwx---+ 201600 access.2014.09.21.log
> -rwxrwx---+ 205650 access.2014.09.22.log
> -rwxrwx---+ 201600 access.2014.09.23.log
> -rwxrwx---+ 204885 access.2014.09.24.log
> -rwxrwx---+ 69020 access.2014.09.25.log
> -rwxrwx---+ 3295014892 access.log
> -rwx------+ 776 error.2014.08.20.log
> -rwxrwx---+ 843 error.2014.09.02.log
> -rwxrwx---+ 843 error.2014.09.08.log
> -rwxrwx---+ 843 error.2014.09.15.log
> -rwxrwx---+ 758572 error.log
> -rwxrwx---+ 6 httpd.pid
> -rwxrwx---+ 3375989937 ssl_request.log
>
>
>
>
>
> --
> Our time is just a point along a line that runs forever with no end.
> (Al Stewart, Lord Grenville)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> AMOS Austria GmbH
> 1130 Wien, Hietzinger Kai 101-105
> FN 365014k, Handelsgericht Wien
> UID: ATU 66614737
>
> http://www.allianz.at
>
> ********************************************************
> Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
> enthalten Informationen, die vertraulich und
> ausschliesslich fuer den (die) bezeichneten Adressaten
> bestimmt sind.
> Wenn Sie nicht der genannte Adressat sind, darf dieses
> E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
> Personen zugaenglich gemacht noch in anderer Weise
> verwertet werden.
> Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
> wir Sie, dieses E-Mail und saemtliche angeschlossene
> Anhaenge zu loeschen.
>
> Please note: This email and any files transmitted with it is
> intended only for the named recipients and may contain
> confidential and/or privileged information. If you are not the
> intended recipient, please do not read, copy, use or disclose
> the contents of this communication to others and notify the
> sender immediately. Then please delete the email and any
> copies of it. Thank you.
> ********************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message