Reputation: 3699
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.
Can I add labels to kubernetes pods, such as log4j
, python_log
, and detected by fluentd?
Upvotes: 2
Views: 535
Reputation: 412
You can use fluent plugin kubernetes metadata filter to get the pod's metadata and classify it with other approach.
Upvotes: 1