Skip to content
Fluentd kubernetes container logs e journald log collector with graylog output
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
daemonset.yaml
fluent.conf
rbac.yaml

README.md

kubelog

Fluentd Kubernetes container logs & journald log collector with Graylog output. Configurable through ConfigMap.

Requirements

  • Docker
  • Kubernetes cluster access
  • Gelf input on Graylog

Installation

  1. Clone this repository and build a docker image:
docker build -t <registry>/<image-name>:<version> .
  1. Modify the docker image on file daemonset.yaml for your docker image generated in previously step.

     spec:
         serviceAccountName: kubelog
         dnsPolicy: ClusterFirst
         containers:
         - name: agent
             image:<registry>/<image-name>:<version>
    
  2. Edit fluent.conf according to your need

  3. Execute:

kubectl create -f rbac.yaml

kubectl create configmap \
    --namespace kube-system kubelog \
    --from-file fluent.conf \
    --from-literal GELF_HOST=<server address> \
    --from-literal GELF_PORT=<port> \
    --from-literal GELF_PROTOCOL=<udp|tcp>

kubectl create -f daemonset.yaml
You can’t perform that action at this time.