Processing Apache Log Files with "Analog"

This section provides a tutorial example on how to process Apache log files with 'Analog'.

1. Downloading my log files to run with "analog".

>cd \local\logs
   (download access.log.44.gz)

>\local\winrar x access.log.44.gz *.* .

>edit c:\local\analog\analog.cfg
   LOGFILE c:\local\logs\access.log.*

analog: analog version 6.0/Win32
analog: Warning E: Redirecting future diagnostic messages to errors.txt
  (For help on all errors and warnings, see docs/errors.html)

>type \local\analog\errors.txt
analog: Warning F: Can't auto-detect format of 
   logfile access.log.44: ignoring it

So "analog" with default settings can not read my log file format. Note that "winrar" is a shareware uncompress .gz files.

2. Configuring "analog" for my log format:

>cd \local\logs
>type access.log.44 | more - - [22/Dec/2002:23:32:14 -0400] "GET 
   /news/sports.html HTTP/1.1" 200 3500 
   "" "Mozilla/4.0 (compatible; MSIE ...)" "-"

>edit c:\local\analog\analog.cfg
   LOGFORMAT (%s - - [%d/%M/%Y:%h:%n:%t -%j] "%j %r %j" %c %b %v "%f"
      "%B" "%j")

   (no errors)   

Here I used the following formatting codes for the LOGFORMAT setting:

%s - Numerical IP address of client
%d/%M/%Y:%h:%n:%t - Date and time fields
%j - Junk field. Skip it. 
%r - File requested 
%c - HTTP response status code 
%b - Number of bytes transferred 
%v - Virtual host, the server hostname
%f - Referrer URL
%B - Browser information

3. Adding referrer report:

>edit c:\local\analog\analog.cfg
   REFFLOOR 0r       

   (no errors)   

The above settings tell "analog" to generate a referrer section in the report. I have also lowered the lower limit (floor) to show referrers with lower request counts.

Table of Contents

 About This Book

 Introduction to Microsoft Windows

 Introduction to Windows Explorer

 Introduction to Internet Explorer

 "Paint" Program and Computer Graphics

 GIMP - GNU Image Manipulation Program

 JPEG Image File Format Quality and Size

 GIF Image File Format and Transparent Background

 "WinZip" - ZIP File Compression Tool

 "WinRAR" - RAR and ZIP File Compression Tool

 FTP Server, Client and Commands

 "FileZilla" - Free FTP Client and Server

Web Server Log Files and Analysis Tool - "Analog"

 Web Server Log File Samples - IIS and Apache

 Installing "Analog" - Web Log File Analysis Tool

 Configuring "Analog" to Process Log Files

Processing Apache Log Files with "Analog"

 Spyware Adware Detection and Removal

 IE Addon Program Listing and Removal

 Vundo (VirtuMonde/VirtuMundo) - vtsts.dll Removal

 Trojan and Malware "Puper" Description and Removal

 VSToolbar (VSAdd-in.dll) - Description and Removal

 Spybot - Spyware Blocker, Detection and Removal

 Setting Up and Using Crossover Cable Network

 Home Network Gateway - DSL Modem/Wireless Router

 Windows Task Manager - The System Performance Tool

 "tasklist" Command Line Tool to List Process Information

 "msconfig" - System Configuration Tool

 Configuring and Managing System Services

 Windows Registry Key and Value Management Tools

 Startup Programs Removal for Better System Performance

 Winsock - Windows Sockets API

 Java on Windows

 Glossary of Terms

 Outdated Tutorials


 Full Version in PDF/ePUB