apachegrep

apachegrep is a perl program (which does not require any non-standard perl modules) to help webmasters (or anyone, really) go through their apache common/combined logs and try to pullout various bits of information. Built in the spirit of unix tools, it's designed to be used standalone or as part of a pipeline of tools to pore over common (or combined) logs and print out entire lines, specified fields or a simple count of matching lines. You specify what fields you want and what regular expression you want applied to that field.

It supports gzipped and bzipped log files.

To our knowledge there's nothing really out there that does this. Up till now it's been a series of adhoc commandline perl, cut and sorts.

Usage Example

apachegrep -r 'gif' /path/to/logfile | apachegrep -s 200 -o -h | sort -u

returns a sorted, uniqued list of host fields for every successful gif transfer.

Man Page

Here is the latest man page.

Download, etc.

Download apachegrep from SourceForge.

You can also use sourceforge to submit bug reports, feature requests, etc.

There's also an apachegrep page on Freshmeat.

Version

The latest version of apachegrep is 0.2 (October 3, 2005).

Contact


© 2005 Scott Klein and Felix Sheng

xhtml 1.0 valid

SourceForge.net Logo