Fake51/LogFilter — pull request #1 by dlink (2013-05-09 19:25:07+00:00)
Title: Added an filepath option.

Hello Fake51.

I like your LogFilter. It came in handy. Thank yous.

I added one option to it: --filepaths, which removes all GET parameters from the '?' to the end. Which was more helpful to me for grouping the same programs to gether.

Cheers.
D

$ ./logfilter.py -h

usage: logfilter.py [-h] [-i | -s | -f | -p] [--ip-filter IP_FILTER]
[--status-filter STATUS_FILTER]
[--method-filter METHOD_FILTER] [-q]
log_file

positional arguments:
log_file Log file to parse

optional arguments:
-h, --help show this help message and exit
-i, --ips List ips and request stats. Default
-s, --sizes List requests by biggest sizes
-f, --files List requests by frequency
-p, --filepaths List requests by frequency
--ip-filter IP_FILTER
Filter by ip address
--status-filter STATUS_FILTER
Filter by response status
--method-filter METHOD_FILTER
Filter by request method
-q, --quiet Suppress unimportant information