From fc25a5c3054197c54b73034486c12d7b30a9bded Mon Sep 17 00:00:00 2001 From: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:27:47 -0500 Subject: [PATCH] Update docs to indicate that providers are no longer enabled by default (#1530) * Update docs to indicate that providers are no longer enabled by default * Add changes from Blake's review * touchup * Update docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse * Update docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse * Address Blake's comments * Update docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse * Update docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc Co-authored-by: Blake Rouse --------- Co-authored-by: Blake Rouse (cherry picked from commit fdcef8a25d882f1dc332a31cd881bb0a2c69754c) --- .../providers/elastic-agent-providers.asciidoc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc b/docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc index 9bedeb67b..396682c44 100644 --- a/docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc +++ b/docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc @@ -35,8 +35,9 @@ providers: - item: key2 ---- -Explicitly disable a provider by setting `enabled: false`. All providers -are prefixed without name collisions. The name of the provider is in the key in the configuration. +Providers are enabled automatically if a provider is referenced in an {agent} policy. +All providers are prefixed without name collisions. +The name of the provider is in the key in the configuration. [source,yaml] ---- @@ -92,9 +93,11 @@ configuration. [[disable-providers-by-default]] === Disabling Providers By Default -All registered providers are enabled by default. +All registered providers are disabled by default until they are referenced in a policy. -Disable all providers by default and only enable explicitly configured providers by setting `agent.providers.initial_default: false`. +You can disable all providers even if they are referenced in a policy by setting `agent.providers.initial_default: false`. + +The following configuration disables all providers from running except for the docker provider, if it becomes referenced in the policy: [source,yaml] ----