Skip to main content

LogStash CKAN extension

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:

Installation

To install the extension, activate your virtualenv and run:

pip install ckanext-logstash

Alternative, you can install a development version with:

git clone https://github.com/datopian/ckanext-logstash.git
cd ckanext-logstash
python setup.py develop
pip install -r requirements.txt

Configuration

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
logstash.host = <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:

logstash.configure_logging=True
logstash.log_level=WARN

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

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

  • CKAN_LOGSTASH_KIND

  • CKAN_LOGSTASH_HOST

  • CKAN_LOGSTASH_PORT

  • CKAN_SENTRY_CONFIGURE_LOGGING

  • CKAN_SENTRY_LOG_LEVEL

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

Metadata

Release files for ckanext-logstash 0.0.2

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

Source distribution (sdist)

Source distribution for ckanext-logstash 0.0.2
File Size Uploaded Provenance Actions
ckanext-logstash-0.0.2.tar.gz 3.5 kB Without provenance Details for ckanext-logstash-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-logstash 0.0.2
File Interpreter ABI Platform Actions
ckanext_logstash-0.0.2-py3-none-any.whl Python 3 none any Details for ckanext_logstash-0.0.2-py3-none-any.whl

Total release size: 8.9 kB

Release files / ckanext-logstash-0.0.2.tar.gz

Download URL ckanext-logstash-0.0.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cf498880df39e9ecb4568ca20ac9161dffa57a3807c4c1931534767daf1439a4
BLAKE2b-256 checksum
How to use checksums
8eb5124e2a972c491accd79b6b6fd4eb35ec20520d278067c7daa41f64e6c040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

Release files / ckanext_logstash-0.0.2-py3-none-any.whl

Download URL ckanext_logstash-0.0.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eb04f3567ff10dab62cc476fd07c23c49c982b3a8111c722281f819c48fc6a6
BLAKE2b-256 checksum
How to use checksums
202dc3eef2ba93cec3cc8a88b55a4e9ec39fd2e41857d79d11b59019639c6032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

Security for ckanext-logstash 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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