Kubernetes: Install Fluentd to a namespace only Kubernetes: Install Fluentd to a namespace only kubernetes kubernetes

Kubernetes: Install Fluentd to a namespace only


The link you shared here which has namespace: kube-system so that's why it got created in kube-system namespace. so to use your namespace please edit the yaml file and replace namepsace: csc in all the places of the yaml file and apply it to kubernetes.

and you deployed as daemonsets so it will run fluentd pod on every node.


It`s typical solution for logging architecture to run DaemonSet on every node and collect logs:

Because the logging agent must run on every node, it's common toimplement it as either a DaemonSet replica, a manifest pod, or adedicated native process on the node. However the latter twoapproaches are deprecated and highly discouraged.

Instead of you may want to shape and parse the log message to your need using parser and filter plugins.

This and this document shows an examples of parsing logs.