Overview

Log files update notifier

Install

hg clone https://bitbucket.org/imbolc/logevent
cd logevent
fab buildenv

Create logevent/settings_local.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'logevent',
    }
}

EMAIL_HOST_USER = 'sender@gmail.com'
EMAIL_HOST_PASSWORD = 'sender-gmail-password'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

HOST = 'logevent.your-host.com'
NOTIFY_EMAIL_FROM = EMAIL_HOST_USER
NOTIFY_EMAILS_TO = ['your@email.com']

Start server

./manage.py syncdb
./manage.py collectstatic
./geventing.py start

Crontab

* * * * *    cd </logevent-path/>; ./manage.py checklogs

Nginx

server {
    listen 80;
    server_name <your_domain.com>;

    location / {
        proxy_pass http://127.0.0.1:45050/;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Scheme $scheme;
    }
}