Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify env var syntax and make experimental #1290

Merged
merged 1 commit into from
Apr 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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