Skip to content

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:

These include the following actions:

  • Generating Self-signed Certificates

    The automatic configuration

    • creates self-signed certificates for Elasticsearch,

    • adds their names in the elasticsearch.yml configuration file, and

    • stores the certificates in the newly created certs subdirectory.

    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 elastic superuser of Elasticsearch will be generated automatically.

    Caution - only on the command line

    The password is created by the install.sh or install.ps1 installation 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 elastic superuser 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.yml configuration 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

  1. Stop any Filebeat that sends data to your management server:

    On any affected system, execute the corresponding command:

    • PLOSSYS Output Engine

      sudo systemctl stop seal-filebeat
      
    • PLOSSYS 4

      sudo systemctl stop seal-p4-accounting-filebeat
      
    • SEAL Operator

      sudo systemctl stop seal-operator-filebeat
      
    • DPF

      sudo systemctl stop seal-dpf-filebeat
      
  2. 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.

  3. Download the SEAL Elastic Stack - 8.19.24.551 - rpm folder. It is saved as SEAL Elastic Stack - 8.19.24.551 - rpm.zip.

  4. Extract SEAL Elastic Stack - 8.19.24.551 - rpm.zip:

    unzip "SEAL Elastic Stack - 8.19.24.551 - rpm.zip"
    
  5. Change to the prepare_upgrade directory:

    cd "SEAL Elastic Stack - 8.19.24.551 - rpm/server/prepare_upgrade"
    
  6. In a Shell, start Upgrade Helper with the -dryrun option:

    /opt/seal/seal-kibana/node/glibc-217/bin/node ./upgrade_helper.js -dryrun
    
  7. Review rollovers, index cleanup, and indices that need re-indexing.

  8. Start Upgrade Helper without the -dryrun option:

    /opt/seal/seal-kibana/node/glibc-217/bin/node ./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.

  9. In a browser, Start Elastic Upgrade Assistant and follow the instructions:

    http://localhost:5601/app/management/stack/upgrade_assistant/overview
    

    Complete any reported data-stream or system-index actions.

  10. Start Upgrade Helper again, until any upgrade warnings are eliminated.

    This may require several turns.

  11. Create a complete backup.

  12. In a shell, change to the SEAL Elastic Stack - 8.19.24.551 - rpm/server directory and start installing the packages:

    cd "SEAL Elastic Stack - 8.19.24.551 - rpm/server"
    
    sudo sh install.sh
    
  13. Open the required firewall ports:

    sudo sh firewall.sh
    
  14. Check the configuration files:

    The installation script checks for the presence of *.rpmnew and *.rmpsave files.

    • *.rpmnew files contain the latest default configurations of the updated software.

    • *.rmpsave files are configuration files that are kept after the old software is uninstalled. You can use them to restore the configuration of the previous version after you have installed the new package.

    Caution - breaking change in the configuration

    If you update from a SEAL Elastic Stack version 7.x, you have to transfer the new settings from the .rpmnew file manually.

    You cannot use the old .yml file, because of a breaking change in the Filebeat configuration between versions 7 and 8.

  15. Change to the configuration directory of seal-elasticsearch:

    cd /opt/seal/etc/config/seal-elasticsearch
    
  16. In an editor, compare the elasticsearch.yml configuration file to the old elasticsearch.yml.install-bak configuration file.

    Add your customer-specific changes, e.g. network.host, path.repo or xpack.security.enabled.

    For details on the general configuration, see Configuring Elasticsearch.

  17. Change to the common configuration directory:

    cd /opt/seal/etc/config
    
  18. In an editor, compare the kibana.yml configuration file to the old kibana.yml.install-bak configuration file.

    Add your customer-specific changes, e.g. server.host, elasticsearch.username or elasticsearch.password.

  19. Set path.data to the correct value, if necessary.

    path.data: "${ProgramData}/SEAL Systems/data/seal-kibana"
    

    Hint - path.data setting moved

    In preparation for future versions, path.data is set in the kibana.yml file instead of the service configuration.

    For details on the general configuration, see Configuring Kibana.

  20. Start Elasticsearch:

    sudo systemctl start seal-elasticsearch
    
  21. Start Kibana:

    sudo systemctl start seal-kibana
    

    Hint - 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.

  22. Update the necessary database configuration as described in Configuration via Script.

  23. In Kibana, check whether the dashboards have been overwritten correctly. Delete old dashboards, if they are still existing.

  24. 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
      

Back to top