Skip to main content

Proxy that allows to send logs from Raven to Elasticsearch.

Project description

Build Status

Proxy that allows to log from raven to elasticsearch.



elasticsearch-raven can be installed as a normal Python package. Example installation for pip:

$ pip install elasticsearch-raven


Configure Ravan to your proxy location

    '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


Option 1: wsgi

You can run 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)

Option 2: UDP server

You can run udp server with command: host port

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Elasticsearch-Raven-1.5.0.tar.gz (8.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page