Skip to content

Commit

Permalink
Add a documentation item about $ resoltion in configs (#17621)
Browse files Browse the repository at this point in the history
* init commit, try to add asciidoc with link

* fix misc errors

* add extra newline to fix asciidoc

Co-Authored-By: DeDe Morton <[email protected]>

* Fix conditional section

Co-authored-by: DeDe Morton <[email protected]>
  • Loading branch information
fearful-symmetry and dedemorton authored Apr 13, 2020
1 parent fd3a26c commit 0e3d439
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions libbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:discuss_forum: beats/{beatname_lc}
:beat_default_index_prefix: {beatname_lc}
:has_ml_jobs:
:no_keystore:

include::{libbeat-dir}/shared-beats-attributes.asciidoc[]

Expand Down
18 changes: 18 additions & 0 deletions libbeat/docs/yaml.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,21 @@ to an integer. If not, it's converted to a float.
To prevent unwanted type conversions, avoid using leading zeros in field values,
or wrap the values in single quotation marks.

[float]
[[dollar-sign-strings]]
=== Avoid accidental template variable resolution

The templating engine that allows the config to resolve data from environment
variables can result in errors in strings with `$` characters. For example, if a
password field contains `$$`, the engine will resolve this to `$`.

To work around this,
either use the
ifdef::no_keystore[]
{filebeat-ref}/keystore.html[keystore]
endif::[]
ifndef::no_keystore[]
<<keystore>>
endif::[]
or escape all instances of
`$` with `$$`.
1 change: 1 addition & 0 deletions x-pack/functionbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:no_decode_csv_fields_processor:
:no_script_processor:
:no_timestamp_processor:
:no_keystore:

include::{libbeat-dir}/shared-beats-attributes.asciidoc[]

Expand Down

0 comments on commit 0e3d439

Please sign in to comment.