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
stdout_stream.subclass_filename = '/var/log/...'

stdout_stream.field_extra_field = 'field_value'
```

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

Metadata

Release files for circus-logstash 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for circus-logstash 0.0.5
File Size Uploaded Provenance Actions
circus-logstash-0.0.5.tar.gz 3.1 kB Without provenance Details for circus-logstash-0.0.5.tar.gz

Release files / circus-logstash-0.0.5.tar.gz

Download URL circus-logstash-0.0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b7bbd8236c56b1803c4ae4f8982349d776cdd917d682d62e15e4c567df3d8cb6
BLAKE2b-256 checksum
How to use checksums
c29f3d4c6faf85120e4daa9d3c3b89c861d49f2918a2d2db805946f408e69dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for circus-logstash 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page