Skip to content

Commit 0f148a0

Browse files
Update docs version of reference.yml and improve header section (#1416) (#1423)
* Update docs version of reference.yml and improve header section * Update docs/en/ingest-management/elastic-agent/configuration/yaml/elastic-agent-reference-yaml.asciidoc (cherry picked from commit f5344bf) Co-authored-by: David Kilfoyle <[email protected]>
1 parent b9b4419 commit 0f148a0

File tree

2 files changed

+141
-15
lines changed

2 files changed

+141
-15
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
The {agent} installation includes an `elastic-agent.reference.yml` file that
55
describes all the settings available in a standalone configuration.
66

7-
This file is included here for your convenience.
7+
To ensure that you're accessing the latest version, refer to the original link:https://github.com/elastic/elastic-agent/blob/main/elastic-agent.reference.yml[`elastic-agent.reference.yml` file] in the `elastic/elastic-agent` repository.
8+
A copy is included here for your convenience.
9+
10+
Each section of the file and available settings are also described in <<structure-config-file,Structure of a config file>>.
811

912
[source,yaml]
1013
----

docs/en/ingest-management/elastic-agent/configuration/yaml/elastic-agent-reference-yaml.yml

Lines changed: 137 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,51 @@ outputs:
1111
default:
1212
type: elasticsearch
1313
hosts: [127.0.0.1:9200]
14-
api-key: "example-key"
14+
api_key: "example-key"
1515
# username: "elastic"
1616
# password: "changeme"
1717

18-
inputs:
19-
# Each input in a policy must have a unique value for the id key.
20-
- id: unique-system-metrics-id
21-
type: system/metrics
18+
# Performance preset for elasticsearch outputs. One of "balanced", "throughput",
19+
# "scale", "latency" and "custom".
20+
# The default if unspecified is "custom".
21+
preset: balanced
2222

23+
inputs:
24+
- type: system/metrics
25+
# Each input must have a unique ID.
26+
id: unique-system-metrics-input
2327
# Namespace name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2428
# For index naming restrictions, see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#indices-create-api-path-params
2529
data_stream.namespace: default
2630
use_output: default
2731
streams:
28-
- metricset: cpu
32+
- metricsets:
33+
- cpu
2934
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
3035
data_stream.dataset: system.cpu
31-
- metricset: memory
36+
- metricsets:
37+
- memory
3238
data_stream.dataset: system.memory
33-
- metricset: network
39+
- metricsets:
40+
- network
3441
data_stream.dataset: system.network
35-
- metricset: filesystem
42+
- metricsets:
43+
- filesystem
3644
data_stream.dataset: system.filesystem
3745

46+
# # Collecting log files
47+
# - type: filestream
48+
# # Input ID allowing Elastic Agent to track the state of this input. Must be unique.
49+
# id: your-input-id
50+
# streams:
51+
# # Stream ID for this data stream allowing Filebeat to track the state of the ingested files. Must be unique.
52+
# # Each filestream data stream creates a separate instance of the Filebeat filestream input.
53+
# - id: your-filestream-stream-id
54+
# data_stream:
55+
# dataset: generic
56+
# paths:
57+
# - /var/log/*.log
58+
3859
# management:
3960
# # Mode of management, the Elastic Agent support two modes of operation:
4061
# #
@@ -72,12 +93,12 @@ inputs:
7293
# target_directory: "${path.data}/downloads"
7394
# # timeout for downloading package
7495
# timeout: 120s
75-
# # file path to a public key used for verifying downloaded artifacts
76-
# # if not file is present agent will try to load public key from elastic.co website.
77-
# pgpfile: "${path.data}/elastic.pgp"
7896
# # install_path describes the location of installed packages/programs. It is also used
7997
# # for reading program specifications.
8098
# install_path: "${path.data}/install"
99+
# # retry_sleep_init_duration is the duration to sleep for before the first retry attempt. This
100+
# # duration will increase for subsequent retry attempts in a randomized exponential backoff manner.
101+
# retry_sleep_init_duration: 30s
81102

82103
# agent.process:
83104
# # timeout for creating new processes. when process is not successfully created by this timeout
@@ -92,6 +113,9 @@ inputs:
92113
# address: localhost
93114
# # port for the GRPC server that spawned processes connect back to.
94115
# port: 6789
116+
# # max_message_size limits the message size in agent internal communication
117+
# # default is 100MB
118+
# max_message_size: 104857600
95119

96120
# agent.retry:
97121
# # Enabled determines whether retry is possible. Default is false.
@@ -108,17 +132,40 @@ inputs:
108132
# # Default is false
109133
# exponential: false
110134

135+
# agent.limits:
136+
# # limits the number of operating system threads that can execute user-level Go code simultaneously.
137+
# # Translates into the GOMAXPROCS runtime parameter for each Go process started by the agent and the agent itself.
138+
# # By default is set to `0` which means using all available CPUs.
139+
# go_max_procs: 0
140+
111141
# agent.monitoring:
112142
# # enabled turns on monitoring of running processes
113143
# enabled: false
114144
# # enables log monitoring
115145
# logs: false
116146
# # enables metrics monitoring
117147
# metrics: false
148+
# # metrics_period defines how frequent we should sample monitoring metrics. Default is 60 seconds.
149+
# metrics_period: 60s
118150
# # exposes /debug/pprof/ endpoints
119151
# # recommended that these endpoints are only enabled if the monitoring endpoint is set to localhost
120152
# pprof.enabled: false
121-
# # exposes agent metrics using http, by default sockets and named pipes are used
153+
# # The name of the output to use for monitoring data.
154+
# use_output: monitoring
155+
# # Exposes agent metrics using http, by default sockets and named pipes are used.
156+
# #
157+
# # `http` Also exposes a /liveness endpoint that will return an HTTP code depending on agent status:
158+
# # 200: Agent is healthy
159+
# # 500: A component or unit is in a failed state
160+
# # 503: The agent coordinator is unresponsive
161+
# #
162+
# # You can pass a `failon` parameter to the /liveness endpoint to determine what component state will result in a 500.
163+
# # For example: `curl 'localhost:6792/liveness?failon=degraded'` will return 500 if a component is in a degraded state.
164+
# # The possible values for `failon` are:
165+
# # `degraded`: return an error if a component is in a degraded state or failed state, or if the agent coordinator is unresponsive.
166+
# # `failed`: return an error if a unit is in a failed state, or if the agent coordinator is unresponsive.
167+
# # `heartbeat`: return an error only if the agent coordinator is unresponsive.
168+
# # If no `failon` parameter is provided, the default behavior is `failon=heartbeat`
122169
# http:
123170
# # enables http endpoint
124171
# enabled: false
@@ -129,6 +176,22 @@ inputs:
129176
# port: 6791
130177
# # Metrics buffer endpoint
131178
# buffer.enabled: false
179+
# # Configuration for the diagnostics action handler
180+
# diagnostics:
181+
# # Rate limit for the action handler. Does not affect diagnostics collected through the CLI.
182+
# limit:
183+
# # Rate limit interval.
184+
# interval: 1m
185+
# # Rate limit burst.
186+
# burst: 1
187+
# # Configuration for the file-upload client. Client may retry failed requests with an exponential backoff.
188+
# uploader:
189+
# # Max retries allowed when uploading a chunk.
190+
# max_retries: 10
191+
# # Initial duration of the backoff.
192+
# init_dur: 1s
193+
# # Max duration of the backoff.
194+
# max_dur: 1m
132195

133196
# # Allow fleet to reload its configuration locally on disk.
134197
# # Notes: Only specific process configuration and external input configurations will be reloaded.
@@ -141,6 +204,13 @@ inputs:
141204
# # period define how frequent we should look for changes in the configuration.
142205
# period: 10s
143206

207+
# Feature Flags
208+
209+
# This section enables or disables feature flags supported by Agent and its components.
210+
#agent.features:
211+
# fqdn:
212+
# enabled: false
213+
144214
# Logging
145215

146216
# There are four options for the log output: file, stderr, syslog, eventlog
@@ -187,7 +257,7 @@ agent.logging.to_stderr: true
187257

188258
# Configure log file size limit. If limit is reached, log file will be
189259
# automatically rotated
190-
#rotateeverybytes: 10485760 # = 10MB
260+
#rotateeverybytes: 20971520 # = 20MB
191261

192262
# Number of rotated log files to keep. Oldest files will be deleted first.
193263
#keepfiles: 7
@@ -210,12 +280,65 @@ agent.logging.to_stderr: true
210280
# Set to true to log messages in JSON format.
211281
#agent.logging.json: false
212282

283+
#=============================== Events Logging ===============================
284+
# Some outputs will log raw events on errors like indexing errors in the
285+
# Elasticsearch output, to prevent logging raw events (that may contain
286+
# sensitive information) together with other log messages, a different
287+
# log file, only for log entries containing raw events, is used. It will
288+
# use the same level, selectors and all other configurations from the
289+
# default logger, but it will have it's own file configuration.
290+
#
291+
# Having a different log file for raw events also prevents event data
292+
# from drowning out the regular log files.
293+
#
294+
# IMPORTANT: No matter the default logger output configuration, raw events
295+
# will **always** be logged to a file configured by `agent.logging.event_data.files`.
296+
297+
# agent.logging.event_data:
298+
# Logging to rotating files. Set agent.logging.to_files to false to disable logging to
299+
# files.
300+
#agent.logging.event_data.to_files: true
301+
#agent.logging.event_data:
302+
# Configure the path where the logs are written. The default is the logs directory
303+
# under the home path (the binary location).
304+
#path: /var/log/filebeat
305+
306+
# The name of the files where the logs are written to.
307+
#name: filebeat-event-data
308+
309+
# Configure log file size limit. If the limit is reached, log file will be
310+
# automatically rotated.
311+
#rotateeverybytes: 5242880 # = 5MB
312+
313+
# Number of rotated log files to keep. The oldest files will be deleted first.
314+
#keepfiles: 2
315+
316+
# The permissions mask to apply when rotating log files. The default value is 0600.
317+
# Must be a valid Unix-style file permissions mask expressed in octal notation.
318+
#permissions: 0600
319+
320+
# Enable log file rotation on time intervals in addition to the size-based rotation.
321+
# Intervals must be at least 1s. Values of 1m, 1h, 24h, 7*24h, 30*24h, and 365*24h
322+
# are boundary-aligned with minutes, hours, days, weeks, months, and years as
323+
# reported by the local system clock. All other intervals are calculated from the
324+
# Unix epoch. Defaults to disabled.
325+
#interval: 0
326+
327+
# Rotate existing logs on startup rather than appending them to the existing
328+
# file. Defaults to false.
329+
# rotateonstartup: false
330+
213331
# Providers
214332

215333
# Providers supply the key/values pairs that are used for variable substitution
216334
# and conditionals. Each provider's keys are automatically prefixed with the name
217335
# of the provider.
218336

337+
# All registered providers are enabled by default.
338+
339+
# Disable all providers by default and only enable explicitly configured providers.
340+
# agent.providers.initial_default: false
341+
219342
#providers:
220343

221344
# Agent provides information about the running agent.

0 commit comments

Comments
 (0)