Output and ClusterOutput
Outputs are the destinations where your log forwarder sends the log messages, for example, to Sumo Logic, or to a file. Depending on which log forwarder you use, you have to configure different custom resources.
Fluentd outputs
- The
Output
resource defines an output where your Fluentd Flows can send the log messages. The output is anamespaced
resource which means only aFlow
within the same namespace can access it. You can usesecrets
in these definitions, but they must also be in the same namespace. Outputs are the final stage for alogging flow
. You can define multipleoutputs
and attach them to multipleflows
. ClusterOutput
defines an Output without namespace restrictions. It is only evaluated in thecontrolNamespace
by default unlessallowClusterResourcesFromAllNamespaces
is set to true.
Note:
Flow
can be connected toOutput
andClusterOutput
, butClusterFlow
can be attached only toClusterOutput
.
- For the details of the supported output plugins, see Fluentd outputs.
- For the details of
Output
custom resource, see OutputSpec. - For the details of
ClusterOutput
custom resource, see ClusterOutput.
Fluentd S3 output example
The following snippet defines an Amazon S3 bucket as an output.
syslog-ng outputs
- The
SyslogNGOutput
resource defines an output for syslog-ng where your SyslogNGFlows can send the log messages. The output is anamespaced
resource which means only aSyslogNGFlow
within the same namespace can access it. You can usesecrets
in these definitions, but they must also be in the same namespace. Outputs are the final stage for alogging flow
. You can define multipleSyslogNGoutputs
and attach them to multipleSyslogNGFlows
. SyslogNGClusterOutput
defines a SyslogNGOutput without namespace restrictions. It is only evaluated in thecontrolNamespace
by default unlessallowClusterResourcesFromAllNamespaces
is set to true.
Note:
SyslogNGFlow
can be connected toSyslogNGOutput
andSyslogNGClusterOutput
, butSyslogNGClusterFlow
can be attached only toSyslogNGClusterOutput
.
RFC5424 syslog-ng output example
The following example defines a simple SyslogNGOutput
resource that sends the logs to the specified syslog server using the RFC5424 Syslog protocol in a TLS-encrypted connection.
- For the details of the supported output plugins, see syslog-ng outputs.
- For the details of
SyslogNGOutput
custom resource, see SyslogNGOutputSpec. - For the details of
SyslogNGClusterOutput
custom resource, see SyslogNGClusterOutput.
Last modified July 3, 2024: Merge pull request #245 from kube-logging/cookie-consent-banner (4587240)