Httee

NAME

httee -- HTTP log file splitting utility.

SYNOPSIS

httee [-RW] < -s number file | file ... >

DESCRIPTION

The httee utility process each provided HTTP log file and copy each HTTP request line to an appropriate file in the current directory. The file name is based on the hostname of the HTTP request, with the www. prefix and the :port suffix stripped if they are found.

The special file "-" can be used to read input from stdin.

The options are as follows:

-R
Do not read the saved number of lines to skip for reading file (see -W flag bellow).
-W
Do not save the number of lines to skip on the next run of httee on file.
-s number
Skip the number first lines in file. Imply -R and -W.

FILES

$XDG_DATA_HOME/httee/positions
Location where the number of proceeded lines in each file are stored.

EXAMPLES

The following 3 lines would produce 2 output files: example.com (containing the first line) and example.net (containing the 2 other lines):

192.0.2.23 example.com - [05/Mar/2007:18:22:34 +0100] "GET / HTTP/1.1" 200 274 "-" "-"
198.51.100.42 www.example.net - [31/Aug/2011:06:07:47 +0200] "GET / HTTP/1.1" 200 804 "-" "-"
203.0.113.2 example.net - [02/Aug/2012:22:50:34 +0200] "GET / HTTP/1.1" 200 4961 "-" "-"

Source Code

Fork me on GitHub!
% git clone git://github.com/smortex/httee.git
top