Nameapercu — Summarizes web traffic based on Apache log files Synopsisapercu [--format =FORMAT ] [--users =FILTER ] [--hits =INTERVAL ] [--referrers =FILTER ] [--resources =FILTER ] [--time =PERIOD ] [--lookup-ips] [--sort-by-name] [--quiet] [--verbose =LEVEL ] [[--version] | [-v]] [ logfile ] Descriptionapercu is an application that extracts information from Apache log files and summarizes it, showing activities and profiles of individuals (users), numbers of requests and referrers, and hit counts over time. By default, apercu displays, in order, users, hit counts, referrers, and resources. Options
ExamplesTo view the hit counts for January 2006: % apercu --time=\d+/Jan/2006 --hits /var/log/apache2/access_log
To view the user profiles and activity for today, showing IP addresses: % apercu --time=today --users --lookup-ips /var/log/apache2/access_log
To view RPM resources for this month: % apercu --time=thismonth --resources='GET.*\.rpm.*' /var/log/apache2/access_log
To view Google Spain referrers this month: % apercu --time=thismonth --referrers='http://www.google.es\S*' /var/log/apache2/access_log
Configuration$HOME/.apercu The run-control (configuration) file, of the form:
format: %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i
lookup-ips: true
sort-by-name: true
quiet: true
The given parameters match the --format, --lookup-ips, --sort-by-name, and --quiet options. AuthorJeff Pace <jpace@incava.org>. The Apercu web site is at http://www.incava.org/projects/apercu. CopyrightCopyright (c) 2006, Jeff Pace. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the Apache License |
|