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 circus-logstash

How to install circus-logstash

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install circus-logstash
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.0.5 Available View build log
 
License
BSD
Dependencies
Imports
Lastest release
version 0.0.5 on Jan 9th, 2014

# Circus-Logstash

A logger to be used in Circus that ships logs via a Redis queue to Logstash. If there is interest in other brokers they should be able to be added to this project

# Installation

```

System Message: WARNING/2 (<string>, line 7); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 7); backlink

Inline interpreted text or phrase reference start-string without end-string.

pip install circus-logstash

System Message: WARNING/2 (<string>, line 9)

Definition list ends without a blank line; unexpected unindent.

```

System Message: WARNING/2 (<string>, line 9); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 9); backlink

Inline interpreted text or phrase reference start-string without end-string.

# Usage

In your Circus config add the stream class and some info

```

System Message: WARNING/2 (<string>, line 24); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 24); backlink

Inline interpreted text or phrase reference start-string without end-string.

stdout_stream.class = circus_logstash.circus_logstash.LogstashRedisLogger stdout_stream.refresh_time = 0.3 stdout_stream.urls = redis://localhost:6379/0 stdout_stream.service = service_name stdout_stream.redis_namespace = logstash:app:production

stdout_stream.subclass = FileStream stdout_stream.subclass_filename = '/var/log/...'

stdout_stream.field_extra_field = 'field_value'

System Message: WARNING/2 (<string>, line 26)

Definition list ends without a blank line; unexpected unindent.

```

System Message: WARNING/2 (<string>, line 26); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 26); backlink

Inline interpreted text or phrase reference start-string without end-string.

urls is a comma separated list of Redis urls to connect to. These are done in round robin if there are any failures connection/writing.

service Used throughout for namespacing the log lines

redis_namespace The list to write logs to

subclass A class to use as well (like writing files still)

Any options prefixed with subclass_ will be passed to the init of the subclass

Any options prefixed with field_ can be used to include extra field:value pairs in the Logstash events. This is useful to include extra metadata about this process.

Subscribe to package updates

Last updated Jan 9th, 2014

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.