Item11545: Excessive debug logging from Statistics runs

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component: FoswikiUIStatistics
Branches: Release01x01 trunk
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
The bin/statistics script logs a debug error for any event log that it doesn't understand. And it only understands view, save, upload, and rename. Errors are reported for:

  • logout
  • sudo login
  • resetpasswd

Also, any webname starting with underscore is rejected with a debug error, so search engines that find and index template webs result in many debug errors logged.

At minimum we should not log errors for valid events that are not tracked.

Also it appears that the bad events are logged for every statistics run. On Foswiki.org as of 2/21, there are 3 sudo events in the events.log file, and 918 errors written for those 3 events. So every "bad" log record is multiplied by the number of statistics runs into the debug log. So web crawlers hit the _Extensions template web 769 time, and statistics has logged 230923 errors.

See also Support.Question633

-- GeorgeClark - 21 Feb 2012

Fix will be:
  • Silently ignore Template webs. (Webname starting with _ or containing a /_)
  • Add resetpasswd, sudo login and logout to list of ignored events
  • Change the error to only log to debug when Asserts::DEBUG is enabled

-- GeorgeClark - 21 Feb 2012
 
Topic revision: r10 - 11 Apr 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy