Apache Web Server Logs



  • Apache Access logs Apache uses the access log files to record information about every visitor to your site. You can see which files visitors view, how the web server responds to requests, and other information such as the web browsers visitors use. Managed dedicated servers and VPS.
  • I recently made a lightweight solution for quickly getting some statistics on an apache or nginx log when neither awk nor server-side analytics are available. It's a web-based app, and using the FileAPI, it all runs in the browser.

Log in to your web server as an administrator. Open the configuration file /etc/Httpd.conf. Modify the file as shown in these code blocks, depending on whether you are connecting over HTTP without authentication, or over HTTPS with authentication.

Web Server Log Files and Analysis Tool - 'Analog'

Web Server Log File Samples - IIS and Apache

This section provides a quick introduction of Web server log files with examples of IIS and Apache servers.

Web Log File: A file produced by a Web server to record activities on the Web server. It usually has the following features:

  • The log file is text file. Its records are identical in format.
  • Each record in the log file represents a single HTTP request.
  • A log file record contains important information about a request: the client side host name or IP address, the date and time of the request, the requested file name, the HTTP response status and size, the referring URL,and the browser information.
  • A browser may fire multiple HTTP requests to Web server to display a single Web page. This is because a Web page not only needs the main HTML document, it may also need additional files, like imagesand JavaScript files. The main HTML document and additional files all require HTTP requests.
  • Each Web server has its own log file format, see log file examples below.
  • If your Web site is hosted by an ISP (Internet Service Provider), they may not keep the log files for you,because log files can be very huge if the site is very busy. Instead, they only give you statistics reports generatedfrom the logs files.

1. IIS (Internet Information Service) Samples: Here are some sample records from an IIS server log file:

The record format is very simple. It has fields for: time, client IP address, request command, requested file, and response status code.

2. Apache Samples: Here are some sample records from an Apache server log file:

The record format is more complex. The records are also very long. I am breaking them into multiple lines.Some fields are easy to understand, like client IP address, date and time, request command line, response status and size, referring URL, and browser name. I don't know what the other fields are.

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

Apache Web Server Logs

Apache Web Server Logs In Linux Located

'WinZip' - ZIP File Compression Tool

Httpd Log

'WinRAR' - RAR and ZIP File Compression Tool

FTP Server, Client and Commands

Apache Web Server Logs List

'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

References

Full Version in PDF/ePUB