Skip to content

Commit

Permalink
Clarify env var syntax and make experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton committed Apr 1, 2016
1 parent e8f6e59 commit f990968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions filebeat/docs/migration.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ conversion to create a Filebeat config file for each Logstash Forwarder config f
Before migrating your config files, we recommend that you first read the <<filebeat-configuration-details>>
section to understand the Filebeat options.

NOTE: Logstash Forwarder has the option of autocompleting environment variables in
the configuration file. This option currently doesn't exist in Filebeat.

[float]
=== Migrating the "files" Section

Expand Down
5 changes: 3 additions & 2 deletions libbeat/docs/shared-env-vars.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
[[using-environ-vars]]
=== Using Environment Variables in the Configuration

experimental[]

You can use environment variable references in the +{beatname_lc}.yml+ file to set values
that need to be configurable during deployment. To do this, use:

`$VAR` or `${VAR}`
`${VAR}`

Where `VAR` is the name of the environment variable.

Expand All @@ -39,7 +41,6 @@ and what each configuration looks like after replacement:
[options="header"]
|==================================
|Config source |Environment setting |Config after replacement
|`name: $NAME` |`export NAME=elastic` |`name: elastic`
|`name: ${NAME}` |`export NAME=elastic` |`name: elastic`
|`name: ${NAME:beats}` |no setting |`name: beats`
|`name: ${NAME:beats}` |`export NAME=elastic` |`name: elastic`
Expand Down

0 comments on commit f990968

Please sign in to comment.