Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pylogwatch

How to install PyLogWatch

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pylogwatch
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.1.9-alpha2 Available View build log
0.1.9-alpha Available View build log
Linux (64-bit)
0.1.9-alpha2 Available View build log
0.1.9-alpha Available View build log
 
License
LICENSE.txt
Lastest release
version 0.1.9-alpha2 on Jan 8th, 2013

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:

System Message: ERROR/3 (<string>, line 10)

Unexpected indentation.
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

Subscribe to package updates

Last updated Jan 8th, 2013

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.