Skip to content

A kubernetes daemonset that pushes your cluster logs to logz.io using fluentd

License

Notifications You must be signed in to change notification settings

store2be/fluentd-logzio-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collecting Docker Log Files with Fluentd and Logz.io

This directory contains the source files needed to make a Docker image that collects Docker container log files using Fluentd and sends them to your Logz.io account.

This image is designed to be used as a daemonset in a Kubernetes cluster.

Usage

Sign in to your logz.io account. Fluentd connection details will be available at https://app.logz.io/#/dashboard/data-sources/Fluentd

Customize daemonset.json

  • Replace _YOUR_ENDPOINT_URL_ with your logz.io access endpoint, such as https://listener.logz.io:8071.
  • Replace _YOUR_TOKEN_ with your logz.io account token.
  • Replace _YOUR_LOG_TYPE_ with the type of logs you are shipping. We are using this as a tag to identify the k8s cluster source of the logs.
  • Replace _YOUR_DOCKER_IMAGE_TAG_ with the docker image tag you will build from this repo.

The logz.io endpoint URL is ${_YOUR_ENDPOINT_URL_}?token=${_YOUR_TOKEN_}&type=${_YOUR_LOG_TYPE_}

Build and deploy

  • docker build -t ${_YOUR_DOCKER_IMAGE_TAG_} .
  • docker push ${_YOUR_DOCKER_IMAGE_TAG_}
  • kubectl create -f daemonset.json --validate=false (disable validation over readOnly key in one of the volumes)

Origin

This repo is based on https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch/fluentd-es-image

It was first created by the folks of DoiT International

Used and published by Snyk for the benefit of Logz.io users

About

A kubernetes daemonset that pushes your cluster logs to logz.io using fluentd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%