Updating SEAL Elastic Stack to the next Major Version¶
If you wish to update to the next major version, follow the description below.
Caution - direct update to 8.x
A direct update to version 8.x requires a version 7.17.5.
If you still work with a version 7.16.x or previous versions, you have to update to version 7.17.5 first.
Important Changes¶
Automatic Configuration¶
SEAL Elastic Stack 8.x provides an automatic configuration, see original documentation, automatic configuration which includes the following security settings:
-
Minimal Security, see original documentation, Minimal Security
-
Basic Security, see original documentation, Basic Security.
These include the following actions:
-
Generating Self-signed Certificates
The automatic configuration
-
creates self-signed certificates for Elasticsearch,
-
adds their names in the
elasticsearch.ymlconfiguration file, and -
stores the certificates in the newly created
certssubdirectory.
For details on Certificate files, see Self-signed Certificates.
-
-
Activating the Minimal Security
The Minimal Security of Elastic Stack will be activated.
A password for the
elasticsuperuser of Elasticsearch will be generated automatically.Caution - only on the command line
The password is created by the
install.shorinstall.ps1installation script during the installation of SEAL Elastic Stack and printed on the command line.Make sure, you remember it and keep it safe.
For details on resetting the
elasticsuperuser password, see Resetting Passwords. -
Creating and using an enrollment token to configure Kibana
The automatic configuration creates and uses an enrollment token for configuring Kibana. For this, the
kibana.ymlconfiguration file is enhanced accordingly.
Influences on Updates¶
-
Preconfigured security in the new system
If you configure the security settings in your system before you update your SEAL Elastic Stack installation, the installation script will leave your settings untouched. This means that Elasticsearch will run without SSL.
Hint - work around: updating with new installation
If you still wish to update your SEAL Elastic Stack installation and benefit from the automatic security, follow the instructions in chapter Updating SEAL Elastic Stack with a New Installation.
-
Preconfigured security in the new system
If you configure the security settings in your system before you update your SEAL Elastic Stack installation, the installation script will leave your settings untouched. This means that Elasticsearch will run without SSL.
Hint - data views
As of Elastic Stack 8.0 Kibana index-patterns are named data-views.
Instructions¶
-
Stop any Filebeat that sends data to your management server:
On any affected system, execute the corresponding command:
-
PLOSSYS Output Engine
stop-service seal-filebeat -
PLOSSYS 4
stop-service seal-p4-accounting-filebeat -
SEAL Operator
stop-service seal-operator-filebeat -
DPF
stop-service seal-dpf-filebeat
-
-
In a browser, log on to the SEAL Systems delivery platform with your logon data:
https://delivery.sealsystems.de
Hint - logon data
You receive the logon data from your Technical Project Manager at SEAL Systems.
-
Download the SEAL Elastic Stack - 8.19.24.551 - msi folder. It is saved as
SEAL Elastic Stack - 8.19.24.551 - msi.zip. -
Extract
SEAL Elastic Stack - 8.19.24.551 - msi.zip. -
Change to the
prepare_upgradedirectory:cd "SEAL Elastic Stack - 8.19.24.551 - rpm/server/prepare_upgrade" -
In a PowerShell (Administrator), start Upgrade Helper with the
-dryrunoption:& "C:\Program Files\SEAL Systems\seal-kibana\node\default\node.exe" .\upgrade_helper.js -dryrun -
Review rollovers, index cleanup, and indices that need re-indexing.
-
Start Upgrade Helper without the
-dryrunoption:& "C:\Program Files\SEAL Systems\seal-kibana\node\default\node.exe" .\upgrade_helper.js <-options>For available options, see Upgrade Helper
Hint - patience required
It may take some time until the re-indexing process is finished.
-
In a browser, Start Elastic Upgrade Assistant and follow the instructions:
http://localhost:5601/app/management/stack/upgrade_assistant/overviewComplete any reported data-stream or system-index actions.
-
Start Upgrade Helper again, until any upgrade warnings are eliminated.
This may require several turns.
-
Create a complete backup.
-
In a PowerShell (Administrator), change to the
SEAL Elastic Stack - 8.19.24.551 - msi\serverdirectory and start installing the packages:cd "SEAL Elastic Stack - 8.19.24.551 - msi\server"Set-ExecutionPolicy Bypass -Scope Process -Force; .\install.ps1 -
Open the required firewall ports:
Set-ExecutionPolicy Bypass -Scope Process -Force; .\firewall.ps1 -
Change to the configuration directory of
seal-elasticsearch:cd "C:\ProgramData\SEAL Systems\config\seal-elasticsearch" -
In an editor, compare the
elasticsearch.ymlconfiguration file to the oldelasticsearch.yml.install-bakconfiguration file.Add your customer-specific changes, e.g.
network.host,path.repoorxpack.security.enabled.For details on the general configuration, see Configuring Elasticsearch.
-
Change to the common configuration directory:
cd "C:\ProgramData\SEAL Systems\config" -
In an editor, compare the
kibana.ymlconfiguration file to the oldkibana.yml.install-bakconfiguration file.Add your customer-specific changes, e.g.
server.host,elasticsearch.usernameorelasticsearch.password. -
Set
path.datato the correct value, if necessary.path.data: "${ProgramData}/SEAL Systems/data/seal-kibana"Hint -
path.datasetting movedIn preparation for future versions,
path.datais set in thekibana.ymlfile instead of the service configuration.For details on the general configuration, see Configuring Kibana.
-
Start Elasticsearch:
start-service seal-elasticsearch -
Start Kibana:
start-service seal-kibanaHint - long duration
If you start Kibana for the first time after the update, this may take very long. Do not stop the starting process, just wait until it is finished.
Hint - Kibana not starting
If Kibana does not start after having been updated, see Deprecated Configuration or Insufficient Hard Disk Space for a possible solution.
-
Update the necessary database configuration as described in Configuration via Script.
-
In Kibana, check whether the dashboards have been overwritten correctly. Delete old dashboards, if they are still existing.
-
Start any Filebeat that sends data to your management server:
On any affected system, execute the corresponding command:
-
PLOSSYS Output Engine
sudo systemctl start seal-filebeat -
PLOSSYS 4
sudo systemctl start seal-p4-accounting-filebeat -
SEAL Operator
sudo systemctl start seal-operator-filebeat -
DPF
sudo systemctl start seal-dpf-filebeat
-