Q: How can I access the web server log files (to see who has been visiting my web pages)?

Effective 2003-03-09, you must use the custom script httpdlogs to access our web server log files.

Running this script will return entries relevant to your web pages from the log file for the current month. If you want data from a previous month, simply type httpdlogs YYYYMM (replacing YYYY and MM with the desired year and month, respectively). You can go back to YYYYMM = 199912 with this script, but older archives are available, so please e-mail for details if you are really interested in the period 199612-199911.

Each line of output contains the following data (one ``word'' each, except the last one):

  • 1) remote host's IP address;
  • 2) remote username (may be bogus) or - if none;
  • 3) username supplied for authentication (when applicable, otherwise -);
  • 4) date/time ([DD/Mon/YYYY:HH:MM:SS);
  • 5) time zone offset (-0800] or -0700]);
  • 6) request method (usualy "GET);
  • 7) requested URL (minus the leading http://www.astro.ucla.edu);
  • 8) request protocol (usually HTTP/1.#", with # = 0 or 1);
  • 9) server response code (200 = request successfully processed);
  • 10) number of bytes served for that URL;
  • 11) referring URL (between double quotes);
  • 12 and beyond) request agent (i.e. remote browser; also between double quotes).
  • IP addresses in the output described above can be translated into domain names by using the command logresolve (see man logresolve for details).