kube-logging / logging-operator

Logging operator for Kubernetes
https://kube-logging.dev
Apache License 2.0
1.56k stars 330 forks source link

How to send Fluentd's own logs to an output #1075

Open heavenly999 opened 2 years ago

heavenly999 commented 2 years ago

Describe the bug: As per the documentation, we shouldn't output fluentd's own logs to stdout, instead it should go to a file, which is actually the default setting. Because the logs are no longer in stdout, fluentbit won't collect the logs.

As far as I understand, there is an option to forward only the error log types from fluentd to an existing output reference via the errorOutputRef field. However I would like to forward all types, not only error type logs to an output.

According to fluentd's own documentation, there is an option to collect fluentd's own logs via a label matcher (fluentd labels it's own logs with @FLUENT_LOG), however I couldn't find an easy way to add this part to fluentd's config via the logging-operator.

The question is, how should I forward all of fluentd's own logs to an output?

Expected behaviour: Be able to collect and forward all of fluentd's own logs

Environment details:

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

pepov commented 1 year ago

Valid request and sorry for the late reply. Marking this as part of 4.2, but I can't promise it will make it into that release or a later one.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!