Skip to main content

A simple Django app to analyse RDS logs using pgbadger.

Project description

https://img.shields.io/pypi/dm/django-log-analyser.svg?maxAge=2592000?style=flat-square:target:https://pypi.python.org/pypi/django-log-analyser

Log Analyser

Install django-log-analyser

Via pip:

pip install django-log-analyser

Install pgbadger in Ubuntu

  1. Open your source list file:

    sudo nano /etc/apt/sources.list
  2. Modify the file to include “yakkety universe” as a source:

    deb http://us.archive.ubuntu.com/ubuntu yakkety universe
  3. Update your system:

    sudo apt-get update
  4. Install pgbadger:

    sudo apt-get install pgbadger

Quick start

  1. Add apps from “log_analyser” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'log_analyser',
    ]
  2. Include the log_analyser URLconf in your project urls.py like this:

    url(r'', include('log_analyser.urls')),
  3. “log_analyser” needs you to add a few constants to your settings:

    AWS_REGION = "aws-region"
    BUCKET_LOG_ANALYSER = 'bucket-name'
    RDS_DB_INSTANCE_IDENTIFIER = ['rds-db-instance-identifier-1', 'rds-db-instance-identifier-2' ...]
    RDS_TEMP_LOG_FILE_LOCATION = "/var/tmp/"
    AWS_ACCESS_KEY_ID = "aws-access-key"
    AWS_SECRET_ACCESS_KEY = "aws-secret-access-key"
  4. Run python manage.py migrate to create the log_analyser models.

Project details


Download files

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

Source Distribution

django-log-analyser-0.2.5.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file django-log-analyser-0.2.5.tar.gz.

File metadata

File hashes

Hashes for django-log-analyser-0.2.5.tar.gz
Algorithm Hash digest
SHA256 6fdb5dd67cb47f1172d5647eabed4daf141f5f5769a3fb9a54404fab0748b090
MD5 6f1ec323c3fb0b3fc771343202b12db5
BLAKE2b-256 7d4dd4e5510626b0447f7bbeea3b8b8d4043b96cb84bfb1f4286215aa394a97d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page