skillfed

fluent-logger

A Python logging handler for Fluentd event collector

fluent-logger v0.11.1 2.3M downloads/30d#3,186 on PyPI457
License unclear Copyright (C) 2011 FURUHASHI Sadayuki Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the… (full text in the JSON record) DORMANT released

What it is and what it does

fluent-logger is a Python client library that sends structured event logs to Fluentd or Fluent Bit, which then handle reliable buffering, log forwarding, and centralized collection. It provides three interfaces: a direct FluentSender API for explicit event emission, an event-based wrapper for global sender setup, and a Python logging.Handler integration for use with the standard logging module. The library serializes events using msgpack and communicates over TCP to a Fluentd/Fluent Bit daemon, supporting both second and nanosecond timestamp precision.

The package is designed for applications generating high volumes of event logs (login, logout, purchase, follow events, etc.) where centralized analysis is valuable. It handles connection failures gracefully with optional buffer overflow handlers, allows custom log formatting, and supports asynchronous communication. The library requires Python 3.7 or later and depends only on msgpack for serialization.

Use it for:

  • Send application events (logins, purchases, user actions) to Fluentd for real-time analysis and dashboarding.
  • Integrate Python logging output with Fluentd using the standard logging.Handler interface for structured log aggregation.
  • Implement custom event buffering and overflow handling when Fluentd is temporarily unavailable.
  • Collect nanosecond-precision timestamped events from Python services for high-resolution timing analysis.
  • Forward application metrics and events to Fluent Bit on edge devices or resource-constrained environments.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Sends structured event logs from Python applications to Fluentd or Fluent Bit for centralized collection and analysis.

Yes, if you are already running Fluentd or Fluent Bit and need a straightforward Python client to send structured events. The package is stable, has low install friction, and integrates cleanly with Python's logging module. The dormant maintenance status is not a blocker for stable use, but verify compatibility with your Fluentd/Fluent Bit version and monitor the repository for security updates.

Install

fluent-logger on PyPI

pip

pip install fluent-logger

uv

uv add fluent-logger

poetry

poetry add fluent-logger

Installing fluent-logger

Before you install

Low friction installation with a single runtime dependency (msgpack). Maintenance is dormant—last release was 2024-06-06 and no commits since 2024-06-17—but the package is marked Production/Stable and has been actively maintained since 2011.

License in practice

Licensed under Apache License 2.0 per the raw license text. License treatment is marked unclear, so verify the SPDX classification matches your compliance requirements before use in proprietary or restricted contexts.

Quickstart

pip install fluent-logger

from fluent import sender
logger = sender.FluentSender('app', host='localhost', port=24224)
logger.emit('follow', {'from': 'userA', 'to': 'userB'})
logger.close()

Requires a running Fluentd or Fluent Bit daemon listening on the configured host and port (default localhost:24224).

Verify before relying

  • Whether the dormant maintenance status (no commits since June 2024) affects long-term compatibility with current Fluentd/Fluent Bit versions.
  • Performance characteristics and throughput limits under high-volume event logging scenarios.

Package facts

License Copyright (C) 2011 FURUHASHI Sadayuki Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the… (full text in the JSON record) (unclear)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 1 — msgpack
Maintenance dormant — 799 days since the last release
Last repo commit
First released
Downloads 2,255,102/month — #3,186 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: fluent_logger-0.11.1-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: System :: Logging

Tags

fluentd python loggerstructured logging fluent bitevent log forwarding pythonfluentd client librarycentralized log collection pythonfluent logger senderpython logging handler fluentd
log-aggregationfluentd-integrationevent-streaming

More Logging packages