Collect Fluentd errors
This section describes how to collect Fluentd error messages (messages that are sent to the @ERROR label from another plugin in Fluentd).
Note: It depends on the specific plugin implementation what messages are sent to the @ERROR label. For example, a parsing plugin that fails to parse a line could send that line to the @ERROR label.
Prerequisites
Configuring readiness probes requires Logging operator 3.14.0 or newer installed on the cluster.
Configure error output
To collect the error messages of Fluentd, complete the following steps.
-
Create a ClusterOutput that receives logs from every logging flow where error happens. For example, create a file output. For details on creating outputs, see Output and ClusterOutput.
-
Set the
errorOutputRef
in the Logging resource to your preferred ClusterOutput.You cannot apply filters for this specific error flow.
-
Apply the ClusterOutput and Logging to your cluster.