Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Cassandra demo application, log management
Python
tree: 969ea9f62e

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
logsandra.egg-info
logsandra
scripts
.gitignore
MANIFEST.in
README
development.ini
ez_setup.py
logsandra-httpd.py
logsandra-monitord.py
logsandra.yaml
setup.cfg
setup.py
test.ini

README

Logsandra
=========
Logsandra is a log management application written in Python and using Cassandra as back-end.


Requirements
------------
Cassandra 0.6 or higher and the following python requirements:

    * Pylons >= 1.0
    * Jinja2
    * PyYAML
    * Pycassa
    * python-dateutil
    * CherryPy >= 3.1
    * Thrift
    * ordereddict
    * Cassandra

The Cassandra bindings are not automatically installed.


Installation
------------
To install Logsandra you run this command:
    
    python setup.py install

It is also possible to directly start using logsandra-httpd.py and logsandra-monitord.py without installing Logsandra to your site-package directory if all 
required modules are all ready installed.

The current keyspace configuration for Cassandra needed for Logsandra to work is:

    <Keyspaces>
        <Keyspace Name="logsandra">
            <ColumnFamily Name="entries" CompareWith="BytesType" />
            <ColumnFamily Name="by_date" CompareWith="LongType" />
            <ColumnFamily Name="by_date_data" CompareWith="LongType" />
            <ColumnFamily Name="categories" CompareWith="UTF8Type" />
          <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
          <ReplicationFactor>1</ReplicationFactor>
          <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
        </Keyspace>
    </Keyspaces>

The keyspace definition might be obsolete in future releases of Cassandra (0.7+) where you can programmatically create and drop keyspaces.

Usage
-----


Configuration
-------------
Something went wrong with that request. Please try again.