Haoyuan Ge
Haoyuan Ge

Reputation: 3699

Is it possible to classify kubernetes pod logs collected by fluentd?

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

Answers (1)

Crazykev
Crazykev

Reputation: 412

You can use fluent plugin kubernetes metadata filter to get the pod's metadata and classify it with other approach.

Upvotes: 1

Related Questions