Skip to main content

Logstash support for CKAN

Project description

The LogStash CKAN extension allows to add a Logstash middleware to the CKAN and stack and optionally configure a LohStash log handler.

This extension builds on top of the previous work of:


To install the extension, activate your virtualenv and run:

pip install ckanext-logstash

Alternative, you can install a development version with:

git clone
cd ckanext-logstash
python develop
pip install -r requirements.txt


To activate the plugin, add logstash to the ckan.plugins key in your ini file:

ckan.plugins = logstash <other-plugins>

You must provide a Logstash Endpoint:

logstash.kind = tcp/udp/amqp = <hostname>
logstash.port = <port> (5959 by default)

If you want Logstash to record your log messages, you can turn it on adding the following options:


The default log level if not provided in the configuration is INFO.

All these configuration options can also be passed via environment variables:






The configuration also supports env vars named like the ckanext-envvars extension convention (eg CKAN___LOGSTASH__LOG_LEVEL).

Project details

Download files

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

Source Distribution

ckanext-logstash-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

ckanext_logstash-0.0.2-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page