Microsoft KB Archive/931179
Article ID: 931179
Article Last Modified on 2/13/2007
- Microsoft Commerce Server 2007 Developer Edition
- Microsoft Commerce Server 2007 Enterprise Edition
- Microsoft Commerce Server 2007 Standard Edition
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.
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 "My Custom Web Site." 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:
- 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.
- If Data Warehouse is in the Resources to unpack list, click Data Warehouse, and then click Next.
- On the Global Resource Pointers screen, accept the default global resource pointer, and then click Next.
- 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.
- On the Select Applications screen, click Next.
- 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.
- In the Commerce Serve Site Packager dialog box, click OK.
- After the package is finished, in the Commerce Serve Site Packager dialog box, click Finish.
- Open the Commerce Server Manager Microsoft Management Console (MMC).
- Under the Commerce Server Manager snap-in, expand Commerce Sites, expand NonCSAnalysis, and then expand Applications.
- Right-click Applications, click New, and then click Add Non-Commerce Application.
- On the General tab, type MyCustomWebSite in the Application Name box.
- In the Nonsecure host name box, type noncswebsite.microsoft.com.
- In the IIS application path box, type / to analyze the whole site.
- Click the Web Servers tab, and then type My Custom Web Site in the IIS Web site box.
- In the Local domain box, type microsoft.com, and then click OK.
- 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.
- 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.
- 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.
- In the Log file directory, type the path where you want to store the log files. The path must be a local path.
- Open the SQL Enterprise Manager (MMC), expand Microsoft SQL Servers, expand SQL Server Group, and then expand the name of the server.
- Right-click Data Transformation Services, and then click New Package.
- On the Task menu, click Configuration synchronization (Commerce Server). The Properties dialog box for the Synchronize Data Warehouse task appears.
- 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.
- On the Task menu, click Web server log import (Commerce Server). The Properties dialog box for for the Import Web Server Logs task appears.
- In the Site name list, click NonCSAnalysis.
- Click the Log File Location tab, and then click noncswebsite.microsoft.com in the Application list.
- 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.
- 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.
- In the Import Web Server Logs dialog box, click OK.
- On the Task menu, click Report Preparation (Commerce Server). The Properties dialog box for the Import Web Server Logs task appears.
- In the Operation properties list, click NonCSAnalysisDW.
- Under Processing Mode, select Full, and then click OK.
- Hold down the CTRL key, and then click both Web server log import and Report Preparation.
- On the Workflow menu, click On Success.
- Start the DTS package. To do this, on the Package menu, click Execute.
- After the DTS package has finished running, use Report Manager to view reports for the Web site.
Keywords: kbhowto kbexpertiseinter KB931179