Hi all, I am new to fluent bit. I am trying to use...
# fluent-bit
d
Hi all, I am new to fluent bit. I am trying to use fluent to collect my k8s pod logs. But most of the pods don't write log in json and I have no control over that. I found there's a
<http://fluentbit.io/exclude|fluentbit.io/exclude>: "true"
annotation to exclude some pods. But I am only interested in logs from some of my pods. Is there a
<http://fluentbit.io/include|fluentbit.io/include>: "true"
annotation that tell fluent to only collect logs from these pod?
p
Not really, you can potentially control it if you can identify the pods via namespace as that is part of the filename so can be controlled by the path in
tail
input. Otherwise you can just drop the logs you don't want after the K8S filter using a
grep
or similar so they're not sent to output
👍 1