<p>Currently, fluentd is used to collect logs produced by kubernetes pods, which are located under `/var/log/containers/'. The problem is that different kinds of pods may have different log formats. And I want to classify those log files so that they can be processed distinctively. </p>

<p>Can I add labels to kubernetes pods, such as <code>log4j</code>, <code>python_log</code>, and detected by fluentd? </p>

<p>You can use <a href="https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter" rel="nofollow noreferrer">fluent plugin kubernetes metadata filter</a> to get the pod's metadata and classify it with other approach.</p>
