Fluentd Kubernetes Daemonset

Fluentd daemonset for Kubernetes and it Docker image
Alternatives To Fluentd Kubernetes Daemonset
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Log Pilot1,321
2 years ago5January 14, 2021116apache-2.0Go
Collect logs for docker containers
Fluentd Kubernetes Daemonset1,215
a month ago33apache-2.0Ruby
Fluentd daemonset for Kubernetes and it Docker image
Aws Eks Kubernetes Masterclass1,109
a month ago37Java
AWS EKS Kubernetes - Masterclass | DevOps, Microservices
Fluentd Docker Image455
a month ago52apache-2.0Dockerfile
Docker image for Fluentd
8 months ago5mitRuby
:pencil: Fluentular is a Fluentd regular expression editor
Filebeat Kubernetes146
5 years ago2mitDockerfile
Filebeat container, alternative to fluentd used to ship kubernetes cluster and pod logs
Fluent Plugin Concat100592a year ago21May 25, 202128mitRuby
Fluentd Filter plugin to concatenate multiline log separated in multiple events.
Docker Hub Rss100
a year ago8mitJavaScript
RSS feed for Docker Hub images
Fluent Bit Aliyun72
6 years ago1July 22, 20175Go
Fluent Bit plugin for Aliyun SLS
Sample Fluentd On Mesos Docker55
10 years ago3Python
Fluentd on Mesos + Docker + Marathon
Alternatives To Fluentd Kubernetes Daemonset
Select To Compare

Alternative Project Comparisons

Fluentd Daemonset for Kubernetes

[!CAUTION] README.md is generated from templates/README.md.erb

Docker Stars Docker Pulls ImageLayers Size ImageLayers Layers

Supported tags and respective Dockerfile links

See also dockerhub tags page: https://hub.docker.com/r/fluent/fluentd-kubernetes-daemonset/tags


Current stable

As the current limitation about the number of automated builds on hub.docker.com, there are some restrictions to ship daemonset images:

  • papertrail, syslog images (x86_64/arm64) won't be published anymore
  • logentries, loggly, logzio, s3 arm64 images won't be published anymore (x86_64 only supported)

If you want to use above non published images, build it by yourself. Dockerfile itself is still maintained in this repository.

Multi-Arch images
  • Azureblob
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-azureblob-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-azureblob-2
  • Elasticsearch8
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-elasticsearch8-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch8-2
  • Elasticsearch7
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-elasticsearch7-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch7-2
    • docker pull fluent/fluentd-kubernetes-daemonset:v1-debian-elasticsearch
  • Opensearch
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-opensearch-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-opensearch-2
  • Cloudwatch
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-cloudwatch-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-cloudwatch-2
  • Forward
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-forward-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-forward-2
  • Gcs
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-gcs-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-gcs-2
  • Graylog
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-graylog-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-graylog-2
  • Kafka
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kafka-2
  • Kafka2
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kafka2-2
  • Kinesis
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kinesis-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kinesis-2
x86_64 images
  • Azureblob Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-azureblob-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-azureblob-amd64-2
  • Elasticsearch8 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-elasticsearch8-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch8-amd64-2
  • Elasticsearch7 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-elasticsearch7-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch7-amd64-2
    • docker pull fluent/fluentd-kubernetes-daemonset:v1-debian-elasticsearch-amd64
  • Opensearch Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-opensearch-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-opensearch-amd64-2
  • Loggly Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-loggly-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-loggly-amd64-2
  • Logentries Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-logentries-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-logentries-amd64-2
  • Cloudwatch Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-cloudwatch-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-cloudwatch-amd64-2
  • S3 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-s3-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-s3-amd64-2
  • Syslog Dockerfile
  • Forward Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-forward-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-forward-amd64-2
  • Gcs Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-gcs-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-gcs-amd64-2
  • Graylog Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-graylog-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-graylog-amd64-2
  • Papertrail Dockerfile
  • Logzio Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-logzio-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-logzio-amd64-2
  • Kafka Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kafka-amd64-2
  • Kafka2 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kafka2-amd64-2
  • Kinesis Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kinesis-amd64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kinesis-amd64-2
arm64 images
  • Azureblob Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-azureblob-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-azureblob-arm64-2
  • Elasticsearch8 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-elasticsearch8-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch8-arm64-2
  • Elasticsearch7 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-elasticsearch7-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-elasticsearch7-arm64-2
    • docker pull fluent/fluentd-kubernetes-daemonset:v1-debian-elasticsearch-arm64
  • Opensearch Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-opensearch-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-opensearch-arm64-2
  • Loggly Dockerfile
  • Logentries Dockerfile
  • Cloudwatch Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-cloudwatch-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-cloudwatch-arm64-2
  • S3 Dockerfile
  • Syslog Dockerfile
  • Forward Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-forward-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-forward-arm64-2
  • Gcs Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-gcs-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-gcs-arm64-2
  • Graylog Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-graylog-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-graylog-arm64-2
  • Papertrail Dockerfile
  • Logzio Dockerfile
  • Kafka Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kafka-arm64-2
  • Kafka2 Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kafka2-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kafka2-arm64-2
  • Kinesis Dockerfile
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-kinesis-arm64-2.1
    • docker pull fluent/fluentd-kubernetes-daemonset:v1.16-debian-kinesis-arm64-2

You can also use v1-debian-PLUGIN tag to refer latest v1 image, e.g. v1-debian-elasticsearch. On production, strict tag is better to avoid unexpected update.

See dockerhub's tags page for older tags.

Old stable

v0.12 development has been ended. These images are never updated.

Alpine Linux (This is deprecated. Use Debian images instead)

What is Fluentd?

Fluentd Logo

Fluentd is an open source data collector, which lets you unify the data collection and consumption for a better use and understanding of data.


Image versions

Fluentd versioning is as follows:

Series Description
v1.x current stable
v0.12 Old stable, no longer updated


Default image version

Default YAML uses latest v1 images like fluent/fluentd-kubernetes-daemonset:v1-debian-kafka. If you want to avoid unexpected image update, specify exact version for image like fluent/fluentd-kubernetes-daemonset:v1.8.0-debian-kafka-1.0.

Run as root

This is for v0.12 images.

In Kubernetes and default setting, fluentd needs root permission to read logs in /var/log and write pos_file to /var/log. To avoid permission error, you need to set FLUENT_UID environment variable to 0 in your Kubernetes configuration.

Use your configuration

These images have default configuration and support some environment variables for parameters but it sometimes doesn't fit your case. If you want to use your configuration, use ConfigMap feature.

Each image has following configurations:

  • fluent.conf: Destination setting, Elaticsearch, kafka and etc.
  • kubernetes.conf: k8s specific setting. tail input for log files and kubernetes_metadata filter
  • tail_container_parse.conf: parser setting for /var/log/containers/*.log. See also "Use CRI parser for containerd/cri-o" logs section
  • prometheus.conf: prometheus plugin for fluentd monitoring
  • systemd.conf: systemd plugin for collecting systemd-journal log. See also "Disable systemd input" section.

Overwrite conf file via ConfigMap. See also several examples:

Use CRI parser for containerd/cri-o logs

This feature is available since v1.12.0-xxx-1.1.

By default, these images use json parser for /var/log/containers/ files because docker generates json formatted logs. On the other hand, containerd/cri-o use different log format. To parse such logs, you need to use cri parser instead.

You can use cri parser by overwriting tail_container_parse.conf via ConfigMap.

# configuration example
  @type cri

See also CRI parser README

Use FLUENT_CONTAINER_TAIL_PATH to change container logs folder

You can update the default path for the container logs i.e /var/log/container/*.log and also one can add multiple path as defined in this fluentd document https://docs.fluentd.org/input/tail#path

Use FLUENT_CONTAINER_TAIL_EXCLUDE_PATH to exclude specific container logs

Since v1.9.3 or later images.

You can exclude container logs from /var/log/containers/ with FLUENT_CONTAINER_TAIL_EXCLUDE_PATH. If you have a trouble with specific log, use this envvar, e.g. ["/var/log/containers/logname-*"].

Disable systemd input

If you don't setup systemd in the container, fluentd shows following messages by default configuration.

[warn]: #0 [in_systemd_bootkube] Systemd::JournalError: No such file or directory retrying in 1s
[warn]: #0 [in_systemd_kubelet] Systemd::JournalError: No such file or directory retrying in 1s
[warn]: #0 [in_systemd_docker] Systemd::JournalError: No such file or directory retrying in 1s

You can suppress these messages by setting disable to FLUENTD_SYSTEMD_CONF environment variable in your kubernetes configuration.

Disable prometheus input plugins

By default, latest images launch prometheus plugins to monitor fluentd. You can disable prometheus input plugin by setting disable to FLUENTD_PROMETHEUS_CONF environment variable in your kubernetes configuration.

Disable sed execution on elasticsearch image

This is for older images. Latest elasticsearch images don't use sed.

By historical reason, elasaticsearch image executes sed command during startup phase when FLUENT_ELASTICSEARCH_USER or FLUENT_ELASTICSEARCH_PASSWORD is specified. This sometimes causes a problem with read only mount. To avoid this problem, set "true" to FLUENT_ELASTICSEARCH_SED_DISABLE environment variable in your kubernetes configuration.

Running on OpenShift

This daemonset setting mounts /var/log as service account fluentd so you need to run containers as privileged container. Here is command example:

oc project kube-system
oc create -f https://raw.githubusercontent.com/fluent/fluentd-kubernetes-daemonset/master/fluentd-daemonset-elasticsearch-rbac.yaml
oc adm policy add-scc-to-user privileged -z fluentd
oc patch ds fluentd -p "spec:
      - name: fluentd
          privileged: true"
oc delete pod -l k8s-app=fluentd-logging

This is from nekop's japanese article.

Multiple fluentd

When you want to have multiple fluentd. For example push to multiple destination like: elsticsearch + S3. You need to use FLUENT_POS_EXTRA_DIR add additional directory for pos file. Otherwise they share same pos file. You may found some log only on one destination.


kafka image doesn't support zookeeper parameters

zookeeper gem doesn't work on Debian 10, so kafka image doesn't include zookeeper gem.

Windows k8s daemonset not supported in this repository

Maintainers don't have k8s experience on Windows. Some users create k8s daemonset on Windows:

Please check them out.

kafka image suggestion

Using debian-kafka2/debian-kafka2-arm64 images are better than using debian-kafka/debian-kafka-arm64 images. Because debian-kafka2/debian-kafka2-arm64 images use out_kafka2 plugin but debian-kafka/debian-kafka-arm64 images use deprecated out_kafka_buffered plugin.


Some images are contributed by users. If you have a problem/question for following images, ask it to contributors.

  • azureblob : @elsesiy
  • papertrail : @alexouzounis
  • kafka : @erhudy
  • graylog : @rtnpro
  • gcs : @andor-pierdelacabeza
  • Amazon Kinesis : @shiftky
  • logz.io : @SaMnCo / @jamielennox
  • splunkhec: @FutureSharks

Currently, we don't accept new destination request without contribution. See https://github.com/fluent/fluentd-kubernetes-daemonset/issues/293


Kubernetes Logging with Fluentd


We can't notice comments in the DockerHub so don't use them for reporting issues or asking question.

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Pull Request

Update templates files instead of docker-image files. docker-image files are automatically generated from templates.

Note: This file is generated from templates/README.md.erb

Popular Docker Projects
Popular Fluentd Projects
Popular Virtualization Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Docker Image