Skip to content

Commit

Permalink
Add migration.enabled config option (elastic#9805)
Browse files Browse the repository at this point in the history
The migration.enabled config option is off by default. Enabling it will add all the alias fields which are used for making Beats 7.x data compatible with 6.x data for queries and dashboards.

A user that upgrades can either set `migration.enabled: true` in the config file or run `-E migration.enabled=true` on the command line to also have the migration aliases in the Elasticsearch index template.

Further changes:

* Add system test to check the generated template
* Fix autodiscovery tests. Were broken as probably the removal of the aliases by default did not work here as it relied on apache2.
  • Loading branch information
ruflin authored Jan 21, 2019
1 parent 700a7e9 commit 36c9242
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions journalbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,3 +1180,8 @@ logging.files:

# Enable or disable seccomp system call filtering on Linux. Default is enabled.
#seccomp.enabled: true

#================================= Migration ==================================

# This allows to enable migration aliases
#migration.enabled: false
5 changes: 5 additions & 0 deletions journalbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,8 @@ processors:
# have the Elasticsearch output configured, you can simply uncomment the
# following line.
#xpack.monitoring.elasticsearch:

#================================= Migration ==================================

# This allows to enable migration aliases
#migration.enabled: false

0 comments on commit 36c9242

Please sign in to comment.