<p>I got the fluentd-kubernetes-daemonset charts from <a href="https://github.com/fluent/fluentd-kubernetes-daemonset" rel="noreferrer">https://github.com/fluent/fluentd-kubernetes-daemonset</a>, and deployed fluentd into kube-system namespace as daemonset. It sends entire cluster logs to elasticsearch. We deploy our csc application in the csc namespace. Instead of installing fluentd as daemonset to collect entire cluster logs, we would like to deploy fluentd in the csc namespace only, and only send csc logs (logs in csc namespace) to elasticsearch. Is there a way to do it?</p>

<p>The link you shared here which has <code>namespace: kube-system</code> so that's why it got created in kube-system namespace. so to use your namespace please edit the yaml file and replace <code>namepsace: csc </code> in all the places of the yaml file and apply it to kubernetes.</p>
<p>and you deployed as daemonsets so it will run fluentd pod on every node.</p>
