Coder Social home page Coder Social logo

apache_loghouse's Introduction

Apache log file analysis using CouchDB

This is my little spare time project on log file analysis using couchdb.

Currently, analysis is restricted to loading the parts of a log file entry into a CouchDB Database. All views only operate on the simple facts of the extracted data.

Now that I have successfully wrapped my mind around the concept of CouchApps I am going to dig deeper into ways for more dynamic analysis. Currently I try to figure a way for dynamically combining existing views...

CouchApp

Finally I managed to get my head around the CouchApp thing. The logHouse directory contains a CouchApp doing all the analysis as the django app, plus three more now.

The loader script has been extended to extract things like browser, os and bot which are now added instead of the full agent string. These three are now visible in the app.

Django-Application

Note: the development of the django app has been abandoned for the time being. New stuff wil be in the CouchApp. The django app has been moved to django-log-house .

A first, very rough django application is in the log_house directory. Installing is as easy as creating a symbolic link in your project directory. The actual database name is configured in the log_house/settings.py module.

Loader

A separate script ( loader ) is responsible for loading and extracting the data. If you want to use a different database name, change the last line.

Dependencies

Besides the obvious CouchDB you will need to install couchdbkit and httpagentparser. These should be downloaded automatically when installing the script via setup.py .

TODO

  1. move or copy parts of the configuration from the application's settings.py to the projects settings.py

  2. break up the loader and make the extraction of information more modular

  3. use httpagentparser to extract more information from the user agent

apache_loghouse's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.