SharePoint - notes from the field

Usage Analysis Processing logs

Here is a simple utility I wrote to process the MOSS usage logs (when turned on at Central Administration >> Operations >> Usage Analysis Processing ). Sometimes it's useful to have alternate source for the user activity, than the usage reports offered in MOSS OOB through the Site Settings.

I have slightly modified the Parser class found at http://www.sharepointblogs.com/wpowell/archive/2007/06/22/moss-usage-log-processing-file-processing.aspx . The MOSSLogParser.exe utility loops through all log files and creates a single CSV file, ready for Excel pivot tables.

the syntax: MOSSLogParser.exe <start_path> <search_pattern>

  • start_path - path to the folder where logs files are defined. The parser will look down, traversing sub-folder structure. Default value is: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Logs" Note the absense of ending slash
  • search_pattern - the pattern used to filter the logs. Default value is "0*.log"

samples:

  • MOSSLogParser.exe
  • MOSSLogParser.exe \\share\logs
  • MOSSLogParser.exe E:\usage "*.log"

 

Published Tuesday, October 30, 2007 7:26 PM by LEONID LYUBLINSKI
Attachment(s): MOSSLogParser.exe

Comments

 

SunnyP said:

Hi,

When I run this program I get the following error:

"Index and count must refer to a location within the buffer.

Parameter name: bytes"

Does anyone know what this means?

Thanks,

Sunny

January 29, 2009 7:34 PM
Anonymous comments are disabled

About LEONID LYUBLINSKI

Leonid Lyublinski is a Microsoft Consultant, an enterprise architect and experienced software developer, specializing in the SharePoint architecture, design and development. In his ~20 years of IT experience he managed teams and run projects covering all phases of the software development lifecycle. This has included business analysis, application design and architecture, implementation and testing, team leadership and post launch support. Through the use of technical, business and interpersonal skills he has achieved the highest levels of customer satisfaction and peer recognition.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker