Search | Directories | Reference Tools
UW Home > UWIN > Computing and Networking > Web > Web Publishing 

Using Wwwstat

Summary

This article introduces how to use wwwstat. Instructions are provided to help you analyze your current access_log data, and examples are included to help you customize the output of wwwstat. This article assumes a familiarity with the Personal Log File Service.

Included on this page:

Introduction

The Personal Log File Service delivers raw log file data to your personal access_log file. The wwwstat program can help you summarize this data into several categories:

Example wwwstat output is available on the wwwstat home page.

Note: before you can use wwwstat you need access_log data. See information on the Personal Log File Service to learn how to turn on your access_log file and start accruing data.

Step-by-Step Instructions

The following instructions show you how to process the data in your current access_log file and deposit the results in your Web directory where they can be viewed with a Web browser.

Although the Personal Log File service delivers new data every night, you have to run the wwwstat command each time you want to generate a new summary. You might run the wwwstat command once a week or perhaps only on the first day of each month.

  1. Log in to your Homer, Dante, or Shell.MyUW.net account.

  2. Press the O key for Other, then press the W key to drop into the Web development environment.

  3. At the prompt, enter the following command to change directories to your Web directory:

    cd public_html

    Your personal access_log is in this directory.

  4. At the prompt, enter the following command to process your access_log file:

    wwwstat -C 206 access_log > stats.html

    This command deposits its results in a file called stats.html. The -C flag tells wwwstat not to count requests with HTTP status code 206, which was added in HTTP 1.1.

  5. Since this file is in your Web directory, you view it in a Web browser with the URL http://servername.washington.edu/youruwnetid/stats.html. Substitute servername and youruwnetid appropriately.

Customizing Your Summaries

The wwwstat command supports several ways to create customized summaries:

To learn more about wwwstat, enter wwwstat -h at the prompt or refer to the wwwstat home page.