Skip to main content
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!

Python utility to parse log files and send them to a Sentry server.

Project Description
==========
pylogwatch
==========
Log file parser, which sends the contents of log files to a centralized Sentry server. Meant for periodic execution via cron.

Config
==========
So far the config format is quite simple. It currently looks like this:
::
DEBUG=True

RAVEN = {
'dsn':'<RAVEN_DSN_URL>',
}

# List of files to monitor and their associated formatters
FILE_FORMATTERS = {
'/var/log/syslog': ('formatters.base.SysLogDateFormatter',
'formatters.base.SysLogProcFormatter',),

'/var/log/auth.log': ('formatters.base.SysLogDateFormatter',
'formatters.base.SysLogProcFormatter',),

'/var/log/apache/error.log': ('formatters.web.ApacheErrorLogFormatter',),

}


DB
==========
PyLogWatch will automaticall create a SQLite database in the folder where the Config File resides.

Execution
==========
To start pylogwatch simply use the '-c' switch to indicate the path to the configuration file:

pylog.py -c /path/to/pylogconf.py

Caveats
==========
Keep in mind that PyLogWatch uses a regular Python file as a configuration. This means that giving write access
to the config file is equivalent to giving execuion privileges for custom Python code. Keep your configuration files
adequately protected
Release History

Release History

This version
History Node

0.1.9-alpha2

History Node

0.1.9-alpha

History Node

0.1.8-alpha1

History Node

0.1.8-alpha

History Node

0.1.7-alpha

History Node

0.1.6-alpha

History Node

0.1.5-alpha

History Node

0.1.4-alpha

History Node

0.1.3-alpha

History Node

0.1.2-alpha

History Node

0.1.1-alpha

History Node

0.1.0-alpha

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
PyLogWatch-0.1.9-alpha2.tar.gz (19.3 kB) Copy SHA256 Checksum SHA256 Source Dec 20, 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