Microsoft KB Archive/931179

= How to configure Commerce Server 2007 to analyze log files from a Web site that is not based on Commerce Server 2007 =

Article ID: 931179

Article Last Modified on 2/13/2007

-

APPLIES TO


 * Microsoft Commerce Server 2007 Developer Edition
 * Microsoft Commerce Server 2007 Enterprise Edition
 * Microsoft Commerce Server 2007 Standard Edition

-



SUMMARY
This article describes how to configure Microsoft Commerce Server 2007 to analyze log files from a Web site that is not based on Commerce Server 2007. The only requirement is that the log files must be in W3C log file format.



MORE INFORMATION
For the purposes of this article, the Web server log files are from a fictitious Web site and a fictitious Web server. This fictitious Web server is running Microsoft Internet Information Services (IIS) version 6.0. The URL of this fictitious Web site is http://noncswebsite.microsoft.com. The Web site uses Microsoft SQL Server 2000.

In IIS, the fictitious Web site is named &quot;My Custom Web Site.&quot; The NetBIOS name of the server is MyNonCS2K7Srv. The IP address of the server is 192.168.5.5. This fictitious Web site logs daily.

To analyze log files, follow these steps:  Install Commerce Server 2007 by the following recommended installation instructions. To view the instructions, visit the following Microsoft Web site:

http://go.microsoft.com/fwlink/?LinkID=57268

 Unpack the Dw.pup solution file. Click Custom unpack, and then click Next. Click Create a new site, and then click Next. In the Site name box, type NonCSAnalysis, and then click Next. On the Select Resources screen, determine whether Data Warehouse is in the Resources to unpack list.  If Data Warehouse is not in the Resources to unpack list, click Data Warehouse in the Available resources list, click Add, and then click Next.</li> If Data Warehouse is in the Resources to unpack list, click Data Warehouse, and then click Next.</li></ul> </li> On the Global Resource Pointers screen, accept the default global resource pointer, and then click Next.</li> On the Database Connection Strings screen, modify the database connection information as appropriate, and then click Next. For example, specify a database and a computer that is running Microsoft SQL Server.</li> On the Select Applications screen, click Next.</li> Configure the server properties. To do this, on the Data Warehouse screen, change the name in the Data Warehouse box to NonCSAnalysisDW, and then click Next. Alternatively, in the Analysis Server Properties area, you can accept the default option.</li> In the Commerce Serve Site Packager dialog box, click OK.</li> After the package is finished, in the Commerce Serve Site Packager dialog box, click Finish.</li> Open the Commerce Server Manager Microsoft Management Console (MMC).</li> Under the Commerce Server Manager snap-in, expand Commerce Sites, expand NonCSAnalysis, and then expand Applications.</li> Right-click Applications, click New, and then click Add Non-Commerce Application.</li> On the General tab, type MyCustomWebSite in the Application Name box.</li> In the Nonsecure host name box, type noncswebsite.microsoft.com .</li> In the IIS application path box, type / to analyze the whole site.</li> Click the Web Servers tab, and then type My Custom Web Site in the IIS Web site box.</li> In the Local domain box, type microsoft.com, and then click OK.</li> In the Non-Commerce applications and Web servers dialog box, click noncswebsite.microsoft.com. Right-click noncswebsite.microsoft.com/MyCustomWebSite, click New, and then click Add Non-Commerce Web Server.</li> <li>In the Server name box, type MyNonCS2K7Srv. In the IP address box, type 192.168.5.5. In the TCP port box, type 80. Leave the Host header name box blank.

Note For Transmission Control Protocol (TCP) and Secure Sockets Layer (SSL) ports, type the correct information based on the configuration of the Web server that the logs are coming from.</li> <li>On the Log Files tab, click the appropriate log file period based on the configuration of the Web server that the logs are coming from. For the example in this article, click Daily. This setting directly affects the way that the DTS tasks search for log files.</li> <li>In the Log file directory, type the path where you want to store the log files. The path must be a local path.</li> <li>Open the SQL Enterprise Manager (MMC), expand Microsoft SQL Servers, expand SQL Server Group, and then expand the name of the server.</li> <li>Right-click Data Transformation Services, and then click New Package.</li> <li>On the Task menu, click Configuration synchronization (Commerce Server). The Properties dialog box for the Synchronize Data Warehouse task appears.</li> <li>In the Site name list, click NonCSAnalysis.

Note You must run the Configuration Synchronization task on each recently created data warehouse. You must also run the Configuration Synchronization task after you make any changes to the Commerce site configuration.</li> <li>On the Task menu, click Web server log import (Commerce Server). The Properties dialog box for for the Import Web Server Logs task appears.</li> <li>In the Site name list, click NonCSAnalysis.</li> <li>Click the Log File Location tab, and then click noncswebsite.microsoft.com in the Application list.</li> <li>Modify the log file path as required. This path must be the path of a folder that is located on a local drive or on a mapped network drive that contains W3C log files.</li> <li>Click Log Files, and then select all the log files that you want to import.

Note If you do not see any log files, either the log file path is incorrect, or the log file period is not set correctly. Log files cannot be imported while IIS is writing to the log files.</li> <li>In the Import Web Server Logs dialog box, click OK.</li> <li>On the Task menu, click Report Preparation (Commerce Server). The Properties dialog box for the Import Web Server Logs task appears.</li> <li>In the Operation properties list, click NonCSAnalysisDW.</li> <li>Under Processing Mode, select Full, and then click OK.</li> <li>Hold down the CTRL key, and then click both Web server log import and Report Preparation.</li> <li>On the Workflow menu, click On Success.</li> <li>Start the DTS package. To do this, on the Package menu, click Execute.</li> <li>After the DTS package has finished running, use Report Manager to view reports for the Web site.</li></ol>

Keywords: kbhowto kbexpertiseinter KB931179

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.