srv

The srv service discovery plugin updates targets by SRV Record.

Example Configuration

Here is an example with out_forward updating targets to get SRV record from _fluentd._tcp.exmaple.com:

<match pattern>
@type forward
‚Äč
<service_discovery>
@type srv
service fluentd
proto tcp
hostname example.com
</service_discovery>
</source>

Parameters

@type

The value must be srv.

service

type

default

version

string

required parameters

1.10.0

Service without underscore in RFC2782.

proto

type

default

version

string

required parameters

1.10.0

Proto without underscore in RFC2782.

hostname

type

default

version

string

required parameters

1.10.0

Name in RFC2782.

dns_server_host

type

default

version

string

nil

1.10.0

Hostname of DNS server to request the SRV record.

interval

type

default

version

integer

60

1.10.0

Interval of requesting to DNS server.

dns_lookup

type

default

version

bool

true

1.10.0

Resolve hostname to IP addr of SRV's Target.

shared_key

type

default

version

string

nil

1.10.0

The shared key per server.

username

type

default

version

string

nil

1.10.0

The username for authentication.

password

type

default

version

string

nil

1.10.0

The password for authentication.

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