Skip to main content

Compute APDEX from Apache-style logs.

Project description

Compute APDEX from Apache-style logs.

Overview

Parses Apache-style logs and generates several statistics useful to website developers:

  • APDEX (Application Performance inDEX, see http://www.apdex.org) ratio (plotted)

  • hit count (plotted)

  • HTTP status codes, with optional detailed output of the most frequent URLs per error status code, along with their most frequent referers

  • Hottest pages (pages which use rendering time the most)

  • ERP5 sites: per-module statistics, with module and document views separated

Some parsing performance figures:

On a 2.3Ghz Corei5, apachedex achieves 97000 lines/s ( pypy-c-jit-62994-bd32583a3f11-linux64) and 43000 lines/s (CPython 2.7).

Requirements

Dependencies

As such, apachedex has no dependencies outside of standard python 2.7 installation. But generated output needs a few javascript files which come from other projects:

  • jquery.js

  • jquery.flot.js

  • jquery.flot.time.js (official flot plugin)

  • jquery.flot.axislabels.js (third-party flot plugin)

If you installed apachedex (using an egg or with a distribution’s package) you should have them already. If you are running from repository, you need to fetch them first:

python setup.py deps

Input

All default “combined” log format fields are supported (more can easily be added), plus %D.

Mandatory fields are (in any order) %t, %r (for request’s URL), %>s, %{Referer}i, %D. Just tell apachedex the value from your apache log configuration (see –logformat argument documentation).

Input files may be provided gzip’ed.

Output

The output is HTML + CSS + JS, so you need a web browser to read it.

Usage

A few usage examples. See embedded help (-h/–help) for further options.

Most basic usage:

apachedex --default website access.log

Generate stand-alone output (suitable for inclusion in a mail, for example):

apachedex --default website --js-embed access.log --out attachment.html

A log file with requests for 2 websites for which individual stats are desired, and hits outside those base urls are ignored:

apachedex --base /site1 /site2

A log file with a site section to ignore. Order does not matter:

apachedex --skip-base /ignored --default website

A mix of both above examples. Order matters !:

apachedex --skip-base /site1/ignored --base /site1 /site2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

APacheDEX-1.0.tar.gz (84.6 kB view details)

Uploaded Source

File details

Details for the file APacheDEX-1.0.tar.gz.

File metadata

  • Download URL: APacheDEX-1.0.tar.gz
  • Upload date:
  • Size: 84.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for APacheDEX-1.0.tar.gz
Algorithm Hash digest
SHA256 ec6c4dfe8a21bd6ebf6502dfdbf3ecf810a28cc9f97ddaeb58b6fce623dfb10f
MD5 aaee38da9938f61e4a2ac2140003a64c
BLAKE2b-256 290f99384e6e3a39987e1d02daa1dc99dd7a9cb6af161886f6fa7b69ab937b51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page