Skip to main content
# 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

```
pip install circus-logstash
```

# Usage

In your Circus config add the stream class and some info

```
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
```

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

`service` Use 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

Download files

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

Source Distribution

circus-logstash-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file circus-logstash-0.0.4.tar.gz.

File metadata

File hashes

Hashes for circus-logstash-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0e449dd1aa194e8910bf7c88a3cbeb5c102b619e06202eccb2d641776bb561ce
MD5 760033f91e991594b56e81c030e57e69
BLAKE2b-256 64fe1d8a3d456ac8211c5a0fa6e50645aece464c6de4afa38dc0786d8a677e9c

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 Sentry Error logging StatusPage Status page