elasticsearch-raven
Proxy that allows to log from raven to elasticsearch.
Installation
Package
elasticsearch-raven can be installed as a normal Python package. Example installation for pip:
$ pip install elasticsearch-raven
Configuration
settings.py
Configure Ravan to your proxy location
RAVEN_CONFIG = {
'dsn': 'protocol://public:secret@host:port/index',
}
public:secret is required by Raven, for valid Sentry dsn pattern, but it doesn’t affect log sending.
Indexes are formatted with actual date. Suggested format:
basic-index-{0:%Y.%m.%d} will result in basic-index-YYYY.MM.DD
Environment Variables
Define elasticsearch location by setting environment variable ELASTICSEARCH_HOST (default: ‘localhost:9200’)
export ELASTICSEARCH_HOST='localhost:9100'
If you use your elasticsearch with https protocol, you should set environment variable USE_SSL to True
export USE_SSL=True
To use http authentication just set ELASTICSEARCH_AUTH variable using ‘login:password’ format
export ELASTICSEARCH_AUTH=login:password
Usage
Option 1: wsgi
You can run wsgi.py with any http server that supports wsgi. Example using python simple HTTP server.
#!/usr/bin/env python
from elasticsearch_raven.wsgi import application
from wsgiref.simple_server import make_server
httpd = make_server('', 8000, application)
httpd.serve_forever()
Option 2: UDP server
You can run udp server with command:
elasticsearch-raven.py host port
Metadata
Release files for Elasticsearch-Raven 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Elasticsearch-Raven-1.5.0.tar.gz | 8.2 kB | Without provenance | Details for Elasticsearch-Raven-1.5.0.tar.gz |
Release files / Elasticsearch-Raven-1.5.0.tar.gz
| Download URL | Elasticsearch-Raven-1.5.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b315c16767b3c1184e6a3f81dce9a80905e02784caacc558f9cd53026712412
|
|
BLAKE2b-256 checksum How to use checksums |
b4d2f1ceaad8c303d162cf3fb087cf10482b0a75f8c28aeb7489d0e3b3f1883b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Elasticsearch-Raven 1.5.0
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.