The foswiki svn repository is obsolete. Developers should register for a http://github.com/ account for commit access to foswiki project. Github is ready for updates.

Item11554: Logs are not rolling on first of months.

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine FoswikiLogger  
Logs failed to roll on foswiki.org on first of month.

-rw-r--r--  1 xxx  xxxxx   69808632 Jan  1 00:04 events.201111
-rw-r--r--  1 xxx  xxxxx   73511302 Jan  1 00:04 events.201112
-rw-r--r--  1 xxx  xxxxx  132654074 Feb 23 21:29 events.log

-- GeorgeClark - 23 Feb 2012

This might be already fixed in Foswikirev:13534 / Tasks.Item11398. Won't know for 100% sure unless we install an early beta to test on Feb 29th.

-- GeorgeClark - 23 Feb 2012

Not a duplicate. The logs did not roll on March 1st. Item11398 is not the fix.

-- GeorgeClark - 01 Mar 2012

Running rotation on copies of the foswiki logs, there are at least 2 issues so far:
  • The error log has records with embedded newlines. The result is that the routine reading the file stops processing thinking there are no more events.
  • The event log stops processing because of a newline in an AUTHENTICATION failure message. The line break causes it to find a bad timestamp and stop.

Changing the rotate routine to join the current line to the previous if it doesn't have a valid timestamp, or if it has too few entries. And eventually if the line exceeds 7 | delimited fields, dump it and log to STDERR.

It seems to work okay with copies of foswiki.org logs from January through current.

-- GeorgeClark - 01 Mar 2012
 
Topic revision: r12 - 11 Apr 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License