# Config: Service Discovery Section

Some of the Fluentd plugins support the `<service_discovery>` section to set the target nodes dynamically.

## Service Discovery Section Overview

The **`service_discovery`** section comes under `<match>`.

```
<match tag.*>
  @type forward
  # ...
  <service_discovery>
    # ...
  </service_discovery>
</match>
```

## Service Discovery Plugin Type

The `@type` parameter of `<service_discovery>` section specifies the type of the plugin. Fluentd core bundles [some useful service discovery plugins](/service_discovery.md) e.g. `file`.

```
<service_discovery>
  @type file
  # ...
</service_discovery>
```

Here's the list of built-in service discovery plugins:

* [`static`](/service_discovery/static.md)
* [`file`](/service_discovery/file.md)
* [`srv`](/service_discovery/srv.md)

For more details, see plugins documentation.

### `@type`

The `@type` parameter specifies the type of service discovery plugin.

```
<service_discovery>
  @type static
  # ...
</service_discovery>
```

If this article is incorrect or outdated, or omits critical information, please [let us know](https://github.com/fluent/fluentd-docs-gitbook/issues?state=open). [Fluentd](http://www.fluentd.org/) is an open-source project under [Cloud Native Computing Foundation (CNCF)](https://cncf.io/). All components are available under the Apache 2 License.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fluentd.org/configuration/service_discovery-section.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
