diff --git a/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-configuration.asciidoc b/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-configuration.asciidoc index 17f433a022..e7f3350dc5 100644 --- a/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-configuration.asciidoc +++ b/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-configuration.asciidoc @@ -21,6 +21,32 @@ changes after installation, you must modify the installed file. For installation details, refer to <>. +Alternatively, you can put input configurations in YAML files into the +folder `{path.config}/inputs.d` to separate your configuration into +multiple smaller files. +The YAML files in the `inputs.d` folder should contain input configurations only. +Any other configurations are ignored. +The files are reloaded at the same time as the standalone configuration. + +TIP: The first line of the configuration must be `inputs`. Then you can list the +inputs you would like to run. + +[source,yaml] +---- +inputs: + - type: logfile + data_stream.namespace: default + paths: [/path/to/file] + use_output: default + + - type: system/metrics + data_stream.namespace: default + use_output: default + streams: + - metricset: cpu + data_stream.dataset: system.cpu +---- + The following sections describe some settings you might need to configure to run an {agent} standalone. For a full reference example, refer to the <> file.