Strange Rotation of Log files in caldavd
hello, i have a calenderserver version -2.4from apple running on a linux squeeze box.. i'm having a problem with the rotation of error/access log files.. -rw------- 1 root root 511052 Jun 15 11:19 access.log -rw------- 1 root root 1007549 Jun 11 00:01 access.log.2011_6_10 -rw------- 1 root root 543113 Jun 12 00:00 access.log.2011_6_11 -rw------- 1 root root 508931 Jun 13 00:00 access.log.2011_6_12 -rw------- 1 root root 848492 Jun 14 00:00 access.log.2011_6_13 -rw------- 1 root root 1367076 Jun 15 00:00 access.log.2011_6_14 -rw------- 1 root root 1234393 Jun 10 00:00 access.log.2011_6_9 -rwxrwxrwx 1 root root 518590 Jun 15 11:19 error.log -rwxrwxrwx 1 root root 1000108 Jun 15 11:08 error.log.1 -rwxrwxrwx 1 root root 1000079 Jun 15 10:46 error.log.2 ................................................................................ and in a short time they reached a maximum size, i've this conf on caldavd.plist file: <!-- Apache-style access log --> <key>AccessLogFile</key> <string>/var/log/caldavd/access.log</string> <key>RotateAccessLog</key> <true/> <!-- Server activity log --> <key>ErrorLogFile</key> <string>/var/log/caldavd/error.log</string> can u pls give me some suggestion of what to do, i tried rotateaccesslog false and still the same problem.. thnx, lisa
On Jun 15, 2011, at 2:25 AM, Lisana Berberi wrote:
hello, i have a calenderserver version -2.4 from apple running on a linux squeeze box..
i'm having a problem with the rotation of error/access log files..
-rw------- 1 root root 511052 Jun 15 11:19 access.log -rw------- 1 root root 1007549 Jun 11 00:01 access.log.2011_6_10 -rw------- 1 root root 543113 Jun 12 00:00 access.log.2011_6_11 -rw------- 1 root root 508931 Jun 13 00:00 access.log.2011_6_12 -rw------- 1 root root 848492 Jun 14 00:00 access.log.2011_6_13 -rw------- 1 root root 1367076 Jun 15 00:00 access.log.2011_6_14 -rw------- 1 root root 1234393 Jun 10 00:00 access.log.2011_6_9 -rwxrwxrwx 1 root root 518590 Jun 15 11:19 error.log -rwxrwxrwx 1 root root 1000108 Jun 15 11:08 error.log.1 -rwxrwxrwx 1 root root 1000079 Jun 15 10:46 error.log.2 ................................................................................ and in a short time they reached a maximum size, i've this conf on caldavd.plist file:
<!-- Apache-style access log --> <key>AccessLogFile</key> <string>/var/log/caldavd/access.log</string> <key>RotateAccessLog</key> <true/>
<!-- Server activity log --> <key>ErrorLogFile</key> <string>/var/log/caldavd/error.log</string>
can u pls give me some suggestion of what to do, i tried rotateaccesslog false and still the same problem..
thnx, lisa
What do you have for "LogLevel" setting in caldavd.plist? "debug" is a very verbose level. Try "warn", and that should keep your error.logs from growing quickly. As for your access.logs, is your server very busy? :-)
On Jun 15, 2011, at 4:04 PM, Morgen Sagen wrote:
What do you have for "LogLevel" setting in caldavd.plist? "debug" is a very verbose level. Try "warn", and that should keep your error.logs from growing quickly. As for your access.logs, is your server very busy? :-)
Sorry, I meant "DefaultLogLevel", not "LogLevel"
hello, i deleted the error log rotated files and kept just error.log and access.log, i changed to "warn" the DefaultLogLevel, restart caldavd, and still in a very short time i had this: -rw------- 1 root root 2255213 Jun 16 15:59 access.log -rwxrwxrwx 1 root root 668190 Jun 16 15:59 error.log -rwxrwxrwx 1 root root 1000008 Jun 16 15:45 error.log.1 -rwxrwxrwx 1 root root 1000046 Jun 16 15:23 error.log.2 -rwxrwxrwx 1 root root 1000078 Jun 16 15:01 error.log.3 -rwxrwxrwx 1 root root 1000062 Jun 16 14:39 error.log.4 -rwxrwxrwx 1 root root 1000149 Jun 16 14:17 error.log.5 -rwxrwxrwx 1 root root 1000048 Jun 16 13:55 error.log.6 what to do???? thnx, lisa ________________________________ From: Morgen Sagen <sagen@apple.com> To: Lisana Berberi <lisanaberberi@yahoo.com> Cc: Calendar Server <calendarserver-users@lists.macosforge.org>; calendarserver-dev@lists.macosforge.org Sent: Thu, June 16, 2011 1:05:08 AM Subject: Re: [CalendarServer-users] Strange Rotation of Log files in caldavd On Jun 15, 2011, at 4:04 PM, Morgen Sagen wrote:
What do you have for "LogLevel" setting in caldavd.plist? "debug" is a very verbose level. Try "warn", and that should keep your error.logs from growing quickly. As for your access.logs, is your server very busy? :-)
Sorry, I meant "DefaultLogLevel", not "LogLevel"
participants (2)
-
Lisana Berberi
-
Morgen Sagen