Skip to content

Commit ae2c72b

Browse files
schershSarah Hersh
authored andcommitted
[DOCS] Updates 7.0 upgrade guide (#34121)
1 parent 5cad03f commit ae2c72b

File tree

6 files changed

+79
-92
lines changed

6 files changed

+79
-92
lines changed

docs/management/upgrade-assistant/index.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[role="xpack"]
12
[[upgrade-assistant]]
23
== Upgrade Assistant
34

docs/setup/upgrade.asciidoc

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,61 @@
11
[[upgrade]]
2-
== Upgrading Kibana
2+
== Upgrading {kib}
3+
34

45
[IMPORTANT]
56
===========================================
6-
Before upgrading Kibana:
7+
Before upgrading {kib}:
78
89
* Consult the <<breaking-changes,breaking changes>> docs.
910
* Test upgrades in a dev environment before upgrading your production servers.
10-
* Backup your data using the Elasticsearch
11-
{ref}/modules-snapshots.html[snapshots] feature.
11+
* Backup your data using the {es} {ref}/modules-snapshots.html[snapshots] feature.
1212
You **cannot roll back** to an earlier version unless you have a backup of
1313
your data.
1414
* If you are using custom plugins, check that a compatible version is
1515
available.
1616
===========================================
1717

18-
Depending on which version of Kibana you're upgrading from, the upgrade process
19-
will vary. Please consult the following table to determine which process you
20-
should follow:
21-
22-
[cols="1<m,1<m,3",options="header",]
23-
|=======================================================================
24-
|Upgrade From |Upgrade To |Supported Upgrade Type
25-
|3.x |5.x |<<upgrade-new-install,New installation>>
26-
|4.0 or 4.1 |5.x |<<upgrade-standard-reindex,Standard upgrade & reindex>>
27-
|4.x >= 4.2 |5.x |<<upgrade-standard,Standard upgrade>>
28-
|5.0.0 pre GA |5.x |<<upgrade-standard-reindex,Standard upgrade & reindex>>
29-
|5.x |5.y |<<upgrade-standard,Standard upgrade>> (where `y > x`)
30-
|5.x |6.x |<<upgrade-standard,Standard upgrade>>
31-
// & <<migrating-6.0-index,Reindex transformation>>
32-
|6.x |6.y |<<upgrade-standard,Standard upgrade>> (where `y > x`)
33-
|6.x |7.x |<<upgrade-standard,Standard upgrade>>
34-
|=======================================================================
35-
36-
NOTE: Saved searches, visualizations, and dashboards created in Kibana 4.x or 5.x
37-
can be generally imported into 6.x.
18+
Depending on which version of {kib} you're upgrading from, the upgrade process to 7.0
19+
will vary.
3820

39-
include::upgrade/upgrade-standard.asciidoc[]
21+
The recommended path is to upgrade to 6.7 before upgrading to 7.0.
22+
This makes it easier to identify the changes you need to make to upgrade and enables
23+
you to perform a rolling upgrade with no downtime.
24+
25+
Please see
26+
*{stack-ref}/upgrading-elastic-stack.html[Upgrading the Elastic Stack]* for a
27+
comprehensive overview of the upgrade process.
28+
29+
[float]
30+
==== Upgrading from 5.x or earlier
31+
{es} can read indices created in the previous major version. If you have indices
32+
created in 5.x or before, you must reindex or delete them before upgrading to 7.0.0.
33+
See {stack-ref}/upgrading-elastic-stack.html#oss-stack-upgrade[Upgrading the Elastic Stack]
34+
for more information.
35+
36+
Once your reindex is complete, you can follow the <<upgrade-standard, Standard upgrade>>
37+
instructions.
38+
39+
[float]
40+
==== Upgrading from 6.x
4041

41-
include::upgrade/upgrade-standard-reindex.asciidoc[]
42+
The recommended path is to upgrade to 6.7 before upgrading to 7.0. This makes it
43+
easier to identify the required changes, and enables you to use the Upgrade Assistant
44+
to prepare for your upgrade to 7.0 (see below).
4245

43-
include::upgrade/upgrade-new-install.asciidoc[]
46+
*Note:* Saved searches, visualizations, and dashboards created in {kib} 6.x
47+
can be generally imported into 7.x.
48+
49+
[float]
50+
==== Upgrading from 6.7
51+
6.7 includes an https://www.elastic.co/guide/en/kibana/6.7/upgrade-assistant.html[Upgrade Assistant]
52+
to help you prepare for your upgrade to 7.0. To access the assistant, go to *Management > 7.0 Upgrade Assistant*.
53+
54+
After you have addressed any issues that were identified by the Upgrade Assistant,
55+
<<upgrade-standard,upgrade to 7.0>>.
56+
57+
58+
include::upgrade/upgrade-standard.asciidoc[]
4459

4560
include::upgrade/upgrade-migrations.asciidoc[]
61+

docs/setup/upgrade/upgrade-migrations.asciidoc

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,53 @@
11
[[upgrade-migrations]]
2-
=== Saved object migrations
2+
=== Troubleshooting saved object migrations
33

4-
Every time Kibana is upgraded it checks to see if all saved objects, such as dashboards, visualizations, and index patterns, are compatible with the new version. If any objects need to be updated, then the automatic saved object migration process is kicked off.
4+
Every time {kib} is upgraded it checks to see if all saved objects, such as dashboards, visualizations, and index patterns, are compatible with the new version. If any objects need to be updated, then the automatic saved object migration process is kicked off.
5+
6+
NOTE: 6.7 includes an https://www.elastic.co/guide/en/kibana/6.7/upgrade-assistant.html[Upgrade Assistant]
7+
to help you prepare for your upgrade to 7.0. To access the assistant, go to *Management > 7.0 Upgrade Assistant*.
58

69
[float]
710
[[upgrade-migrations-process]]
811
==== How the process works
912

10-
Saved objects are stored in an index named `.kibana_N`, where `N` is a number that increments over time as Kibana is upgraded. The index alias `.kibana` points to the latest up-to-date index for a given install.
13+
Saved objects are stored in an index named `.kibana_N`, where `N` is a number that increments over time as {kib} is upgraded. The index alias `.kibana` points to the latest up-to-date index for a given install.
1114

12-
NOTE: Prior to 6.5.0, saved objects were stored directly in an index named `.kibana`, so the first time you upgrade to Kibana version 6.5+, Kibana will migrate into `.kibana_1` and set `.kibana` up as an index alias.
15+
NOTE: Prior to 6.5.0, saved objects were stored directly in an index named `.kibana`, so the first time you upgrade to {kib} version 6.5+, {kib} will migrate into `.kibana_1` and set `.kibana` up as an index alias.
1316

14-
While Kibana is starting up and before serving any HTTP traffic, it checks to see if any internal mapping changes or data transformations for existing saved objects are required.
17+
While {kib} is starting up and before serving any HTTP traffic, it checks to see if any internal mapping changes or data transformations for existing saved objects are required.
1518

1619
When changes are necessary, a new incremental `.kibana_N` index is created with updated mappings, then the saved objects are loaded in batches from the existing index, transformed to whatever extent necessary, and added to this new index.
1720

18-
Once the objects are migrated, the `.kibana` index alias is updated to point to the new index, and Kibana finishes starting up and serving HTTP traffic.
21+
Once the objects are migrated, the `.kibana` index alias is updated to point to the new index, and {kib} finishes starting up and serving HTTP traffic.
1922

2023
[float]
2124
[[upgrade-migrations-old-indices]]
2225
==== Handling old `.kibana` indices
2326

24-
After migrations have run, there will be multiple Kibana indices in Elasticsearch: (`.kibana_1`, `.kibana_2`, etc). Kibana only uses the index that the `.kibana` alias points to. The other Kibana indices can be safely deleted, but are left around as a matter of historical record, and to facilitate rolling Kibana back to a previous version.
27+
After migrations have run, there will be multiple {kib} indices in {es}: (`.kibana_1`, `.kibana_2`, etc). {kib} only uses the index that the `.kibana` alias points to. The other {kib} indices can be safely deleted, but are left around as a matter of historical record, and to facilitate rolling {kib} back to a previous version.
2528

2629
[float]
2730
[[upgrade-migrations-errors]]
2831
==== Handling errors during saved object migrations
2932

30-
If Kibana terminates unexpectedly while migrating a saved object index, some additional work may be required in order to get Kibana to re-attempt the migration.
33+
If {kib} terminates unexpectedly while migrating a saved object index, some additional work may be required in order to get {kib} to re-attempt the migration.
3134

32-
For example, if the `.kibana` alias is pointing to `.kibana_4`, and there is a `.kibana_5` index in Elasticsearch, the `.kibana_5` index will need to be deleted. Kibana will never attempt to overwrite an existing index.
35+
For example, if the `.kibana` alias is pointing to `.kibana_4`, and there is a `.kibana_5` index in {es}, the `.kibana_5` index will need to be deleted. {kib} will never attempt to overwrite an existing index.
3336

3437
[float]
3538
[[upgrade-migrations-multiple-instances]]
36-
==== Support for multiple kibana instances
39+
==== Support for multiple {kib} instances
3740

38-
If you're running multiple Kibana instances for a single index behind a load balancer, it's important that you stop all instances before upgrading, so you do not have multiple different versions of Kibana trying to perform saved object migrations.
41+
If you're running multiple {kib} instances for a single index behind a load balancer, it's important that you stop all instances before upgrading, so you do not have multiple different versions of {kib} trying to perform saved object migrations.
3942

4043
The first instance that triggers saved object migrations will run the entire process. Any other instances started up while a migration is running will log a message and then wait until saved object migration has completed before they start serving HTTP traffic.
4144

4245
[float]
4346
[[upgrade-migrations-rolling-back]]
44-
==== Rolling back to a previous version of Kibana
47+
==== Rolling back to a previous version of {kib}
48+
49+
When rolling {kib} back to a previous version, point the `.kibana` alias to the appropriate {kib} index. When you have the previous version running again, delete the more recent `.kibana_N` index or indices so that future upgrades are based on the current {kib} index.
50+
51+
WARNING: Rolling back to a previous {kib} version can result in saved object data loss if you had successfully upgraded and made changes to saved objects before rolling back.
4552

46-
When rolling Kibana back to a previous version, point the `.kibana` alias to the appropriate Kibana index. When you have the previous version running again, delete the more recent `.kibana_N` index or indices so that future upgrades are based on the current Kibana index.
4753

48-
WARNING: Rolling back to a previous Kibana version can result in saved object data loss if you had successfully upgraded and made changes to saved objects before rolling back.

docs/setup/upgrade/upgrade-new-install.asciidoc

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/setup/upgrade/upgrade-standard-reindex.asciidoc

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
[[upgrade-standard]]
2-
=== Standard Upgrade
2+
=== Standard upgrade
33

4-
A standard upgrade is the most straightforward way to upgrade Kibana, and it's
5-
possible when you're upgrading from Kibana version 4.2 or higher.
4+
NOTE: 6.7 includes an https://www.elastic.co/guide/en/kibana/6.7/upgrade-assistant.html[Upgrade Assistant]
5+
to help you prepare for your upgrade to 7.0. To access the assistant, go to *Management > 7.0 Upgrade Assistant*.
66

7-
If you haven't already, consult this <<upgrade,table>> to verify that standard
8-
upgrade is supported for your version of Kibana.
9-
10-
NOTE: If you've saved and/or exported objects in Kibana that rely on the
11-
<<search,Elasticsearch Query DSL>>, make sure to check the Elasticsearch
7+
[IMPORTANT]
8+
===========================================
9+
If you've saved and/or exported objects in {kib} that rely on the
10+
<<search,Elasticsearch Query DSL>>, make sure to check the {es}
1211
{ref}/breaking-changes.html[breaking changes] documentation and take the
1312
necessary remediation steps as per those instructions.
13+
===========================================
1414

1515
[float]
1616
==== Upgrading using a `deb` or `rpm` package
1717

18-
. Stop the existing Kibana process using the appropriate command for your
18+
. Stop the existing {kib} process using the appropriate command for your
1919
system.
2020
. Use `rpm` or `dpkg` to install the new package. All files should be placed in
2121
their proper locations and config files should not be overwritten.
2222
+
2323
[NOTE]
2424
--
25-
Kibana 4.x used a different config location than 5.0+, so if you're upgrading
25+
{kib} 4.x used a different config location than 5.0+, so if you're upgrading
2626
from 4.x, you will need to copy the configurations from your old config
2727
(`/opt/kibana/config/kibana.yml`) to your new config
2828
(`/etc/kibana/kibana.yml`).
2929

3030
Make sure you remove or update any configurations
3131
that are indicated in the <<breaking-changes,breaking changes>> documentation
32-
otherwise Kibana will fail to start.
32+
otherwise {kib} will fail to start.
3333
--
3434
. Upgrade any plugins by removing the existing plugin and reinstalling the
3535
appropriate version using the `kibana-plugin` script. Check out the
3636
<<kibana-plugins,plugins>> documentation for more information.
37-
. Start the new Kibana process using the appropriate command for your system.
37+
. Start the new {kib} process using the appropriate command for your system.
3838

3939
[float]
4040
==== Upgrading using a `zip` or `tar.gz` archive
@@ -43,19 +43,19 @@ otherwise Kibana will fail to start.
4343
don't overwrite the `config` or `data` directories. +
4444
+
4545
--
46-
IMPORTANT: If you use {monitoring}, you must re-use the data directory when you
46+
IMPORTANT: If you use {monitor-features}, you must re-use the data directory when you
4747
upgrade {kib}. Otherwise, the {kib} instance is assigned a new persistent UUID
4848
and becomes a new instance in the monitoring data.
4949

5050
--
5151
. Copy the files from the `config` directory from your old installation to your
5252
new installation. Make sure you remove or update any configurations that are
5353
indicated in the <<breaking-changes,breaking changes>> documentation
54-
otherwise Kibana will fail to start.
54+
otherwise {kib} will fail to start.
5555
. Copy the files from the `data` directory from your old installation to your
5656
new installation.
5757
. Install the appropriate versions of all your plugins for your new
5858
installation using the `kibana-plugin` script. Check out the
5959
<<kibana-plugins,plugins>> documentation for more information.
60-
. Stop the old Kibana process.
61-
. Start the new Kibana process.
60+
. Stop the old {kib} process.
61+
. Start the new {kib} process.

0 commit comments

Comments
 (0)