AW: rotatelogs.exe keeps one giant file [wd-vc]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx]
Gesendet: Donnerstag, 25. September 2014 08:15
An: users@xxxxxxxxxxxxxxxx
Betreff:  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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux