How to Configure a Virtual Server for Usage Analysis Logging (817101)



The information in this article applies to:

  • Microsoft Windows SharePoint Services

SUMMARY

This article describes how to maintain an accurate Usage Analysis log of usage data after you add a new virtual server to SharePoint Team Services.

MORE INFORMATION

If a virtual server is added after usage processing is set, usage processing will not be enabled for that virtual server. You can enable logging for this virtual server by using either of the following methods.

Configure Usage Analysis Processing for a Server

  1. Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.
  2. In the Component Configuration section, click Configure Usage Analysis Processing.
  3. In the Logging Settings section, click to select the Enable logging check box.
  4. In the Log file location box, enter the location where you want to store the log file. The default location for the log file is C:\WINNT\System32\LogFiles.
  5. In the Number of log files per virtual server box, enter a number between 1 and 30. Generally, you should use a number that is one to three times the number of database servers in your Web Farm, with a maximum number of 30 log files.
  6. In the Processing Settings section, click to select the check box.
  7. In the Start list, select the time of day to start running log processing. In the End list, select the time to stop running log processing. Make sure that you set an interval of at least 30 minutes between the start and end times to allow the processing operation to run.
  8. Click OK.

Configure Virtual Server Through the Command Line

  1. Click Start, and then click Run.
  2. Type the following command in the Open box:

    stsadm.exe -o setproperty -pn job-usage-analysis -pv "daily between HH:MM:SS and HH:MM:SS" -url Address to Virtual Server

  3. Click OK.
Note When you use the command line to set the Start and Stop times for an individual virtual server by using the command-line tool, those adjustments are not visible on the Component Configuration page. This page reflects only the settings and changes made through Component Configuration and not by the command-line tool.

Modification Type:MinorLast Reviewed:7/27/2006
Keywords:kbinfo kbreadme KB817101