Comparison
graypy vs loki-logger-handler vs python-logging-loki vs python-logstash
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python logging handlers that send messages in the Graylog Extended Log Format (GELF).
Likely abandoned. No release or commit for years (last release over 7 years ago).
pip install graypyHandler designed for transmitting logs to Grafana Loki in JSON format.
Low maintenance activity. Last release 18 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install loki-logger-handlerPython logging handler for Grafana Loki.
Likely abandoned. No release or commit for years (last release over 7 years ago).
pip install python-logging-lokiPython logging handler for Logstash.
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install python-logstashIn short
- graypy looks abandoned: avoid it for new projects.
- python-logging-loki looks abandoned: avoid it for new projects.
- python-logstash looks abandoned: avoid it for new projects.
- loki-logger-handler is the most used: 207.5K downloads a month.
- loki-logger-handler also has the best Pythie’s Index (31).
- loki-logger-handler is growing fastest: downloads +26% over the last month.
Side by side
| Metric | graypy | loki-logger-handler | python-logging-loki | python-logstash |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 12 | Pythie’s Index: 31 | Pythie’s Index: 14 | Pythie’s Index: 20 |
| Verdict | Likely abandoned | Low maintenance activity | Likely abandoned | Likely abandoned |
| Downloads / month | 385K | 207.5K | 722.9K | 820.8K |
| Downloads, month over month | +15% | +26% | -10% | +15% |
| GitHub stars | 264 | 57 | 172 | 461 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 140 | 7 | 43 | 32 |
| Last release | Sep 30, 2019 | May 26, 2025 | Nov 28, 2019 | Mar 30, 2022 |
| Releases, 12 months | 0 | 0 | 0 | 0 |
| Weeks with commits | 0 / 26 | 0 / 26 | 0 / 26 | 0 / 26 |
| Recent contributors | 3 | 13 | 3 | 18 |
| First release | Feb 2011 | Oct 2023 | Feb 2019 | May 2013 |
| Python versions | 3.2 – 3.7 | 3.6 – 3.12 | 3.6 – 3.8 | – |
| License | non-standard | MIT | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.