Service Discovery Plugins

Fluentd has 8 types of plugins: Input, Parser, Filter, Output, Formatter, Storage, Service Discovery and Buffer. This article gives an overview of Service Discovery Plugin.

Overview

Some of the plugins has the <service_discovery> (ex: out_forward). Sometimes, the service discovery for an output plugin doesn't meet one's needs. Fluentd has a pluggable system called Service Discovery that lets the user extend and re-use custom output service discovery.

How To Use

Here is a simple example to update target by reading file(/etc/fluentd/sd.yaml) with out_forward and service_discovery:

<source>
@type forward
<service_discovery>
@type file
path "/etc/fluentd/sd.yaml"
</service_discovery>
</source>

List of Built-in Service Discovery

List of Core Output Plugins with Service Discovery support

If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is a open source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.