DEV Community

John  Ajera
John Ajera

Posted on

Logging Options in Amazon EKS: Fluent Bit vs Fluentd

๐Ÿ“˜ Introduction

When it comes to logging in Amazon EKS, two of the most popular tools are Fluent Bit and Fluentd. Both are powerful log forwarders that can collect, filter, and route logs from your Kubernetes workloads to various destinations, such as CloudWatch, S3, Elasticsearch, or third-party observability platforms.

This guide provides a visual comparison of Fluent Bit vs Fluentd and offers best practices for using them in your EKS cluster.


๐Ÿ” Fluent Bit vs Fluentd: Key Differences

Feature Fluent Bit Fluentd
Resource Usage Lightweight, ideal for edge/devices Heavier, more flexible
Performance High throughput, low memory Lower throughput, higher memory
Plugin Ecosystem Smaller but growing Large and mature
Configuration Simpler More powerful
CloudWatch Support Official AWS EKS add-on Manual setup required
Container Image Size ~5MB ~40MB+

๐Ÿค” Choosing the Right Tool

Use Fluent Bit if... Use Fluentd if...
โœ… You're using Fargate โœ… You're on EC2-based nodes and need flexibility
โœ… You want lightweight and fast logging โœ… You need advanced filtering or routing
โœ… You prefer AWS-managed add-ons โœ… You're already using Fluentd elsewhere in your stack

๐Ÿš€ Deployment Models

Fluent Bit (EKS Add-on or Helm)

Fluent Bit can be deployed via the official AWS EKS add-on for minimal setup or manually using a Helm chart for more control over configuration.

Fluentd (DaemonSet Deployment)

Fluentd is typically deployed as a DaemonSet using a generic Kubernetes manifest. Youโ€™ll need to select a suitable image and provide your own configuration files to define input sources and output destinations.


โœ… Best Practices

  • ๐Ÿงฉ Use structured logging (e.g., JSON)
  • ๐Ÿ” Assign least-privilege IAM roles to logging agents
  • ๐Ÿงผ Keep logging agents separate from app containers
  • ๐Ÿšฆ Filter noisy logs to reduce CloudWatch costs
  • ๐Ÿ“ค Route logs based on namespace or label

๐Ÿงพ Summary

Both Fluent Bit and Fluentd are great options for EKS logging, depending on your needs:

  • Fluent Bit is fast, lightweight, and works seamlessly with AWS-native solutions โ€” ideal for most users.
  • Fluentd is a full-featured logging router with deep plugin support โ€” great for advanced pipelines.

Choose the tool that fits your workload, and donโ€™t hesitate to mix both in multi-node-type environments.

Happy logging! ๐Ÿ“

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly โ€” using the tools and languages you already love!

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple โ€œthank youโ€ can uplift someoneโ€™s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay