v4.0.4

Next generation Telemetry Agent for Logs, Metrics and Traces.

July 9, 2025

KNOWLEDGE BASE

Release Notes v4.0.4

Fluent Bit is a Fast and Lightweight Data Processor and Forwarder for Linux, BSD, Windows and macOS. We are proud to announce the availability of Fluent Bit v4.0.4.

This release brings significant improvements to OpenTelemetry support, including a new internal OTLP interface and enhanced Lua scripting with metadata awareness. This release also introduces native character encoding conversion in in_tail, full support for AWS MSK IAM authentication in Kafka plugins, and performance boosts via Kafka consumer auto-commit. In addition, we’ve included numerous stability, compatibility, and memory handling enhancements across the core engine and plugins — with special attention to NFS-friendly log rotation, improved upstream connection reuse, and expanded platform compatibility.

Below is a detailed list of changes included in this release…

What’s new ?


Core


  • network
    • add new net.backlog property (somaxconn) (PR #10550)
    • on dns lookup with c-ares, unregister socket from the event loop (PR #10466)
    • on sync connection always check socket status (PR #10466)
  • downstream
    • expose new net.backlog config property (PR #10550)
    • fix timeouts handling by fixing property check (PR #10552)
  • http_client: validate return of host and content_length check (PR #10466)
  • opentelemetry
    • new abstraction for OTel data handling (PR #10549)
  • log_event_encoder_dynamic_field: ensure outstanding scopes are cleaned up before releasing the underlying buffer (PR #10549)
  • pack: extra protection on error handling on JSON to msgpack (PR #10549)
  • stream_processor: update yylex() signatures in lexer definition files (PR #10551)
  • reload: fix handling hot reload when reload failure (PR #10547)
  • hash_table
    • fix case insensitive memory leak (PR #10424)
    • simplify logic to free heap allocated key (PR #10424)
  • io: on network connect exceptions, invalidate file descriptor (PR #10425)
  • internal: config: implement storage inheritance option (PR #10396)
  • log_event_decoder: validate memory allocation (PR #10433)
  • upstream
    • fix connection count when net.max_worker_connections is set (fix #10342) (PR #10423)
    • prioritize the reuse of connections instead of establishing new ones (PR #10491)
    • fix handling of the busy_flag for keepalive connections (PR #10466)
    • add missing return value in conn recycle (PR #10466)
  • processor: add function to allow a direct string property value (PR #10444)
  • multiline: release unpacked contexts on exceptions (PR #10449)
  • http_server: allow to set a maximum buffer size for a client payload (PR #10448)
  • config_format: yaml: add detailed error message on bad format (PR #10499)
  • go: plugin_proxy: update function pointer signatures with correct args for C23 (PR #10489)
  • build
    • Isolate onigmo headers for building process (PR #10517)
    • check for SASL before linking to it (PR #10525)
    • remove double-linking to ssl and crypto (PR #10525)
    • src: Build generic part of unicode interface (PR #10464)
    • adjust order for Kafka dependencies and AWS defs (PR #10536)
    • deprecate option FLB_FILTER_LUA_USE_MPACK (PR #10457)
  • gzip: Process boundary conditions strictly (PR #10526)
  • input_chunk: Keep consistent for appending chunks (PR #10527)
  • aws
    • msk_iam: add support for MSK IAM auth (PR #10525)
    • only include aws_msk_iam if Kafka is enabled (PR #10525)
    • http_credentials: release config_key_profile on exception (PR #10466)
  • kafka: add new API to manage a context with opaque pointers (PR #10525)
  • packaging: add pkg-config (PR #10525)
  • unicode
    • defs: Add conversion mapping for UTF-8 (PR #10464)
    • conv: Implement conversion rules for encoding conversion (PR #10464)
    • tests: internal: Add more aliases for encodings (PR #10464)
  • conv: unicode: Add a search function for encoding types (PR #10464)
  • st: regparse: Handle C23 strict checking for function signatures (PR #10521)
  • record_accessor
    • extend API to support binary and string refs (PR #10548)
    • update yylex() signatures in lexer definition files (PR #10551)

Libraries

Plugins


Contributors

On every release, there are many people involved doing contributions on different areas like bug reporting, troubleshooting, documentation and coding, without these contributions from the community, the project won’t be the same and won’t be in the good shape that it is now. So THANK YOU! to everyone who takes part of this journey!

Join us

We want to hear about you, our community is growing and you can be part of it!, you can contact us at:

Latest Version

New release on July 09, 2025

Fluent Bit v4.0.4 is out!

Check out the Release Notes, read the Updated Documentation or jump directly to the Downloads Section.

We are part of a wide community, no vendor lock-in.