This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Collection of advanced utils to parse logfiles in different formats and build statistic reports

Project Description

alstat is advances logs statistics. It’s collection of utils to analyze logs.

Features

  • Unpack gzipped logfiles
  • Fast

Usage

This commant print all lines from all log files in directory /var/log/nginx if format http_method status http_referer:

alstat -d /var/log/nginx/ -p "*access*" -f "base" http_method status http_referer

GET 200 http://google.com
.... to many lines
GET 404 http://ya.ru/
PUT 200 http://yandex.com/

You can view fields list that you can use to display:

alstat -d /var/log/nginx/ -p "*access*" -l

Alstat v0.0.1 start at Tue May  8 23:25:24 2012
You can use fieldnames: status, http_protocol, http_method, http_referer, remote_addr, url, time_local, http_user_agent, remote_user, size

INSTALLATION

To use alstat use pip or easy_install:

pip install alstat

or

easy_install alstat

TODO

  • Add group by fields and count
  • Web interface with reports

CONTRIBUTE

Fork https://github.com/Lispython/alstat/ , create commit and pull request.

THANKS

To David M. Beazley for generators examples.

SEE ALSO

Release History

Release History

This version
History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
alstat-0.0.7.tar.gz (8.6 kB) Copy SHA256 Checksum SHA256 Source May 9, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting