Skip to content

Commit 1f70e99

Browse files
Add 'Structure of a config file' for standalone agent (#433) (#481)
(cherry picked from commit 5235eb2) Co-authored-by: David Kilfoyle <[email protected]>
1 parent 3d3bd05 commit 1f70e99

19 files changed

+110
-35
lines changed

docs/en/ingest-management/beats-agent-comparison.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ prevention. The {agent} can be deployed in two different modes:
1515

1616
** *Standalone mode* -- All policies are applied to the {agent} manually as a YAML file. This is intended for more advanced users.
1717
See <<install-standalone-elastic-agent>> for more information.
18-
+
19-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
2018

2119
The method you use depends on your use case, which features you need, and
2220
whether you want to centrally manage your agents.

docs/en/ingest-management/elastic-agent/configuration/authentication/ssl-settings.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[elastic-agent-ssl-configuration]]
2-
= Configure SSL/TLS
2+
= Configure SSL/TLS for standalone {agent}s
33

44
++++
55
<titleabbrev>SSL/TLS</titleabbrev>

docs/en/ingest-management/elastic-agent/configuration/create-standalone-agent-policy.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[[create-standalone-agent-policy]]
22
= Create a standalone {agent} policy
33

4-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
5-
64
To get started quickly, use {kib} to add integrations to an agent policy, then
75
download the policy to use as a starting point for your standalone {agent}
86
policy. This approach saves time, is less error prone, and populates the

docs/en/ingest-management/elastic-agent/configuration/elastic-agent-configuration.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[[elastic-agent-configuration]]
22
= Configure standalone {agent}s
33

4-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
5-
64
TIP: To get started quickly, use {kib} to create and download a standalone
75
policy file. You'll still need to deploy and manage the file, though. For more
86
information, refer to <<create-standalone-agent-policy>>.

docs/en/ingest-management/elastic-agent/configuration/elastic-agent-monitoring.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<titleabbrev>Monitoring</titleabbrev>
66
++++
77

8-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
9-
108
{agent} monitors {beats} by default. To turn off or change monitoring
119
settings, set options under `agent.monitoring` in the `elastic-agent.yml` file.
1210

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[[elastic-agent-standalone-download]]
2+
= Configure download settings for standalone {agent} upgrades
3+
4+
++++
5+
<titleabbrev>Agent download</titleabbrev>
6+
++++
7+
8+
The `agent.download` section of the elastic-agent.yml config file contains settings for where to download and store artifacts used for {agent} upgrades.
9+
10+
[[elastic-agent-standalone-download-settings]]
11+
.{agent} download settings
12+
[cols="2*<a"]
13+
|===
14+
| Setting | Description
15+
16+
|
17+
[[agent.download.sourceURI]]
18+
`sourceURI`
19+
20+
| (string) Path to the location of artifacts used during {agent} upgrade.
21+
22+
// =============================================================================
23+
24+
|
25+
[[agent.download.target_directory]]
26+
`target_directory`
27+
28+
| (string) Path to the directory where download artifacts are stored.
29+
30+
// =============================================================================
31+
32+
|
33+
[[agent.download.timeout]]
34+
`timeout`
35+
36+
| (string) The HTTP request timeout in seconds for the download package attempt.
37+
38+
// =============================================================================
39+
40+
|
41+
[[agent.download.install_path]]
42+
`install_path`
43+
44+
| (string) The location of installed packages and programs, as well as program specifications.
45+
46+
// =============================================================================
47+
48+
|
49+
[[agent.download.retry_sleep_init_duration]]
50+
`retry_sleep_init_duration`
51+
52+
| (string) The duration in seconds to sleep for before the first retry attempt.
53+
54+
// =============================================================================
55+
56+
|===

docs/en/ingest-management/elastic-agent/configuration/elastic-agent-standalone-features.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<titleabbrev>Feature flags</titleabbrev>
66
++++
77

8-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
9-
108
The Feature Flags section of the elastic-agent.yml config file contains settings in {agent} that are disabled by default. These may include experimental features, changes to behaviors within {agent} or its components, or settings that could cause a breaking change. For example a setting that changes information included in events might be inconsistent with the naming pattern expected in your configured {agent} output.
119

1210
To enable any of the settings listed on this page, change the associated `enabled` flag from `false` to `true`.

docs/en/ingest-management/elastic-agent/configuration/elastic-agent-standalone-logging.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<titleabbrev>Logging</titleabbrev>
66
++++
77

8-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
9-
108
The Logging section of the `elastic-agent.yml` config file contains settings for configuring the logging output.
119
The logging system can write logs to the `syslog`, `file`, `stderr`, `eventlog`, or rotate log files.
1210
If you do not explicitly configure logging, the `stderr` output is used.

docs/en/ingest-management/elastic-agent/configuration/inputs/input-configuration.asciidoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[[elastic-agent-input-configuration]]
2-
= Configure inputs for Standalone {agent}s
3-
4-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
2+
= Configure inputs for standalone {agent}s
53

4+
++++
5+
<titleabbrev>Inputs</titleabbrev>
6+
++++
67

78
The `inputs` section of the `elastic-agent.yml` file specifies how {agent} locates and processes input data.
89

docs/en/ingest-management/elastic-agent/configuration/outputs/output-configuration.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<titleabbrev>Outputs</titleabbrev>
66
++++
77

8-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
9-
108
The `outputs` section of the `elastic-agent.yml` file specifies where to
119
send data. You can specify multiple outputs to pair specific inputs with
1210
specific outputs.

docs/en/ingest-management/elastic-agent/configuration/outputs/output-elasticsearch.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<titleabbrev>{es}</titleabbrev>
88
++++
99

10-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
11-
1210
The {es} output sends events directly to {es} by using the {es} HTTP API.
1311

1412
*Compatibility:* This output works with all compatible versions of {es}. See the

docs/en/ingest-management/elastic-agent/configuration/outputs/output-logstash.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<titleabbrev>{ls}</titleabbrev>
88
++++
99

10-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
11-
1210
The {ls} output uses an internal protocol to send events directly to {ls} over
1311
TCP. {ls} provides additional parsing, transformation, and routing of data
1412
collected by {agent}.

docs/en/ingest-management/elastic-agent/configuration/providers/elastic-agent-providers.asciidoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[[providers]]
2-
= Providers
2+
= Configure providers for standalone {agent}s
3+
4+
++++
5+
<titleabbrev>Providers</titleabbrev>
6+
++++
37

48
Providers supply the key-value pairs that are used for variable substitution
59
and conditionals. Each provider's keys are automatically prefixed with the name
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[[structure-config-file]]
2+
= Structure of a config file
3+
4+
The `elastic-agent.yml` policy file contains all of the settings that determine how {agent} runs. The most important and commonly used settings are described here, including input and output options, providers used for variables and conditional output, security settings, logging options, enabling of special features, and specifications for {agent} upgrades.
5+
6+
An `elastic-agent.yml` file is modular: You can combine input, output, and all other settings to enable the {integrations-docs}[{integrations}] to use with {agent}. Refer to <<create-standalone-agent-policy,Create a standalone {agent} policy>> for the steps to download the settings to use as a starting point, and then refer to the following links for specifics on how to adjust the settings individually as needed.
7+
8+
// Coming soon: Add instructions for obtaining cut-and-paste settings from a new tab on each integration landing page.
9+
10+
[discrete]
11+
[[structure-config-file-components]]
12+
== Config file components
13+
14+
The following categories include the most common settings used to configure standalone {agent}. Follow each link for more detail and examples.
15+
16+
<<elastic-agent-input-configuration,Inputs>>::
17+
Specify how {agent} locates and processes input data.
18+
19+
<<providers,Providers>>::
20+
Specify the key-value pairs used for variable substitution and conditionals in {agent} output.
21+
22+
<<elastic-agent-output-configuration,Outputs>>::
23+
Specify where {agent} sends data.
24+
25+
<<elastic-agent-ssl-configuration,SSL/TLS>>::
26+
Configure SSL including SSL protocols and settings for certificates and keys.
27+
28+
<<elastic-agent-standalone-logging-config,Logging>>::
29+
Configure the {agent} logging output.
30+
31+
<<elastic-agent-standalone-feature-flags,Feature flags>>::
32+
Configure any experiemental features in {agent}. These are disabled by default.
33+
34+
<<elastic-agent-standalone-download,Agent download>>::
35+
Specify the location of required artifacts and other settings used for {agent} upgrades.
36+
37+

docs/en/ingest-management/elastic-agent/install-elastic-agent.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ on the system where it’s installed. You are responsible for managing and
2828
upgrading the agents. This approach is reserved for advanced users only.
2929
+
3030
Refer to <<install-standalone-elastic-agent>>.
31-
+
32-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
3331

3432
* **Install {agent} in a containerized environment**
3533
+

docs/en/ingest-management/elastic-agent/install-standalone-elastic-agent.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[[install-standalone-elastic-agent]]
22
= Install standalone {agent}s (advanced users)
33

4-
5-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
6-
74
To run an {agent} in standalone mode, install the agent and manually configure
85
the agent locally on the system where it’s installed. You are responsible for
96
managing and upgrading the agents. This approach is recommended for advanced

docs/en/ingest-management/elastic-agent/running-on-kubernetes-standalone.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[[running-on-kubernetes-standalone]]
22
= Run {agent} Standalone on Kubernetes
33

4-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
5-
64
:manifest: https://raw.githubusercontent.com/elastic/elastic-agent/{branch}/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
75
:show-condition: enabled
86

docs/en/ingest-management/elastic-agent/upgrade-standalone-elastic-agent.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[[upgrade-standalone]]
22
= Upgrade standalone {agent}s
33

4-
include::{fleet-repo-dir}/standalone-note.asciidoc[]
5-
64
To upgrade a standalone agent running on an edge node:
75

86
. Make sure the `elastic-agent` service is running.

docs/en/ingest-management/index.asciidoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ include::elastic-agent/configuration/elastic-agent-configuration.asciidoc[levelo
159159

160160
include::elastic-agent/configuration/create-standalone-agent-policy.asciidoc[leveloffset=+2]
161161

162-
include::elastic-agent/grant-access-to-elasticsearch.asciidoc[leveloffset=+2]
163-
164-
include::elastic-agent/debug-standalone-elastic-agent.asciidoc[leveloffset=+2]
162+
include::elastic-agent/configuration/structure-config-file.asciidoc[leveloffset=+2]
165163

166164
include::elastic-agent/configuration/inputs/input-configuration.asciidoc[leveloffset=+2]
167165

@@ -177,6 +175,12 @@ include::elastic-agent/configuration/elastic-agent-standalone-logging.asciidoc[l
177175

178176
include::elastic-agent/configuration/elastic-agent-standalone-features.asciidoc[leveloffset=+2]
179177

178+
include::elastic-agent/configuration/elastic-agent-standalone-download.asciidoc[leveloffset=+2]
179+
180+
include::elastic-agent/grant-access-to-elasticsearch.asciidoc[leveloffset=+2]
181+
182+
include::elastic-agent/debug-standalone-elastic-agent.asciidoc[leveloffset=+2]
183+
180184
include::elastic-agent/configuration/autodiscovery/elastic-agent-kubernetes-autodiscovery.asciidoc[leveloffset=+2]
181185

182186
include::elastic-agent/configuration/autodiscovery/kubernetes-conditions-autodiscover.asciidoc[leveloffset=+3]

0 commit comments

Comments
 (0)