eleftherios g stavridis

index/zephyr/

zephyr

zephyr is a wrapper for httpd log parsers/analyzers. It sorts and merges httpd log files, feeds them to a parser/analyzer (currently visitors and analog are supported) and optionally emails the output to a user specified email address.

Download: zephyr-0.1.tar.gz. zephyr is free software, available under the GNU GPL.

examples

zephyr -p /some/httpd/logs/ -m me@mydom.org -n access.log
merge /some/httpd/logs/access.log* logs, pass them to visitors, compress and email the output html file to <me@mydom.org>
zephyr -m me@mydom.org -o "-U" -n mydomain-access.log
merge /var/log/apache2/mydomain-access.log* logs, pass them to visitors with the "-U" option, compress, and email the output html file to <me@mydom.org>
zephyr -n access-log -rj -s 20060601 -e 20060607
just merge /var/log/apache2/access-log* logs from 1st of June 2006 until 7th of June 2006, using real sorting; the output file is gzipped and saved at the current dir

options

-e, --end-date=DATE
merge/parse/analyze logs up to DATE; the format must be one of YYYYMMDD, YYYYMMDDhh, YYYYMMDDhhmm, or YYMMDDhhmmss, where YYYY is the year, MM is the month, DD is the day, hh is the hour, mm is the minute, and ss is the second
-h, --help
display help information and exit
-j, --just-merge-logs
just merge logs, do not feed to an httpd log parser/analyzer
-m, --mail-to=EMAIL
email the (gzipped) output file to EMAIL
-n, --logname=NAME
basename of log files to parse
-o, --parser-options=PARSEROPTIONS
pass PARSEROPTIONS to log parser/analyzer
-p, --httpd-logs-path=PATH
the absolute path to httpd logs, /var/log/apache2 is the default PATH value
-r, --real-sort
perform real sorting on log entries by pooling them all together and sorting them one by one; if this option is not specified sorting is performed at log file level by taking the timestamp of the first log entry of each log file
-s, --start-date=DATE
merge/parse/analyze logs starting from DATE; the format must be one of YYYYMMDD, YYYYMMDDhh, YYYYMMDDhhmm, or YYMMDDhhmmss, where YYYY is the year, MM is the month, DD is the day, hh is the hour, mm is the minute, and ss is the second
-u, --use-analyzer=ANALYZER
use visitors or analog for log analysis
Copyright © 2002 - 2008 eleftherios g stavridis  accessibility statement [0] | contact [9]
$Id: index.py 365 2007-05-17 20:55:13Z eleftherios $
Support the Open Rights Group [FSF Associate Member] Eliminate DRM! Join EFF Today Firefox 3