Skip to content

Commit

Permalink
backport to 7.12
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorelli25 committed Apr 28, 2021
1 parent d77347f commit 13b5820
Show file tree
Hide file tree
Showing 3 changed files with 356 additions and 125 deletions.
14 changes: 11 additions & 3 deletions docs/copied-from-beats/docs/loggingconfig.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ To see which selectors are available, run {beatname_uc} in debug mode
after the log level and is enclosed in brackets.
=====

To configure multiple selectors, use the following {beats-ref}/config-file-format.html[YAML list syntax]:
["source","yaml",subs="attributes"]
----
logging.selectors: [ harvester, input ]
----

ifndef::serverless[]
To override selectors at the command line, use the `-d` global flag (`-d` also
sets the debug log level). For more information, see <<command-line-options>>.
Expand All @@ -164,10 +170,11 @@ endif::serverless[]
[float]
==== `logging.metrics.enabled`

If enabled, {beatname_uc} periodically logs its internal metrics that have
By default, {beatname_uc} periodically logs its internal metrics that have
changed in the last period. For each metric that changed, the delta from the
value at the beginning of the period is logged. Also, the total values for all
non-zero internal metrics are logged on shutdown. The default is true.
non-zero internal metrics are logged on shutdown. Set this to false to disable
this behavior. The default is true.

Here is an example log line:

Expand Down Expand Up @@ -249,7 +256,8 @@ When true, logs messages in JSON format. The default is false.
[float]
==== `logging.ecs`

When true, logs messages in Elastic Common Schema (ECS) compliant format.
When true, logs messages with minimal required Elastic Common Schema (ECS)
information.

ifndef::serverless[]
[float]
Expand Down
Loading

0 comments on commit 13b5820

Please sign in to comment.