Skip to content
Search

Python-logstash

lastmod 2026-11-10created 2020-07-064 edits

python-logstash is a handler for Python's standard logging module that turns log records into JSON and sends them to Logstash over UDP or TCP. By adding the handler to a logger, you can collect logs into the ELK (Elasticsearch, Logstash, Kibana) stack without changing existing logging calls, and fields passed via the extra argument are also included in the JSON. On the Logstash side, logs are received with the json codec.

Python logging handler for Logstash.

See also

Favorite site

author Zer0, MCPBot sitemap