Upgrades

Manual update of OP5 from version 6.1.1 to 6.1.2

The OP5 Log Anlytics 6.1.1 update should be done by copying new versions of files to the appropriate directories. The source installation directory is: /root/pkg_6.1.2*

Data node update

  1. Go to installation directory that contain OP5 Log Analytics 6.1.2 files:

     cd /root/pkg_6.1.2
    
  2. Stop the Elasticsearch service

     systemctl stop elasticsearch
    
  3. Backup the elasticsearch-auth plugin

     cp –rf /usr/share/elasticsearch/plugins/elasticsearch-auth /root/backup/
    
  4. Copy the new version of the plugin from the installation directory:

     cp -rf elastisearch/elasticearch-auth /usr/share/elasticsearch/plugins/
    
  5. Grant the appropriate permissions for directories:

     chown -R elasticseach:elasticsearch /usr/share/elasticsearch
    
  6. Start the Elasticsearch service

     systemctl start elasticsearch
    

Client Node update

  1. Check if the following RPM packages have been installed:

     yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++ urw-fonts net-tools ImageMagick ghostscript poppler-utils
    
  2. Stop the Kibana and Alert services:

     systemctl stop kibana
     systemctl stop alert
    
  3. Delete the contents of the directory /usr/share/kibana/optimize/bundles/

     rm -rf /usr/share/kibana/optimize/bundles/*
    
  4. Delete the contents of the directory /usr/share/kibana/plugins

     rm -rf /usr/share/kibana/plugins/*
    
  5. Backup current Alert rules folder

     cp -pr /opt/alert/rules /root/backup/alert/rules
    
  6. Delete old version of Alert plugin

     rm -rf /opt/alert
    
  7. Delete old version of AI plugin

     rm -rf /opt/ai
    
  8. Copy the Kibana plugins from the installation directory

     cp -rf kibana/plugins/* /usr/share/kibana/plugins/
    
  9. Copy the Alert plugin from the installation directory

     /bin/cp -rf alert /opt/alert
    
  10. Copy Alert rules folder

     cp -pr /root/backup/alert/rules/* /opt/alert/rules/
    
  11. Copy the Alert plugin from the installation directory

      /bin/cp -rf ai /opt/ai
    
  12. Unpack the node.js modules

     tar -xf /usr/share/kibana/plugins/node_modules.tar -C /usr/share/kibana/plugins/
    
  13. Delete the unnecessary tar.gz archive

     /bin/rm -rf /usr/share/kibana/plugins/node_modules.tar
    
  14. Give the right permissions to the Kibana directory

     chown -R kibana:kibana /usr/share/kibana
    
  15. Perform the start of Kibana and Alert

     systemctl start kibana
     systemctl start alert
    

Upgrade the OP5 Log Analytics with RPM packets

Data node (every Elasticsearch installation) update

  1. Currently updateing with RPMs is not supported - refer to manual update section when upgrading data node.

Client Node update (GUI)

  1. Stop the Kibana and Alert services:

     systemctl stop kibana
     systemctl stop alert
    
  2. Delete bundles /usr/share/kibana/optimize/bundles/

     rm -rf /usr/share/kibana/optimize/bundles/*
    
  3. Delete the contents of the directory /usr/share/kibana/plugins

     rm -rf /usr/share/kibana/plugins/*
    
  4. Run update with following command:

     rpm -Uvh --replacefiles op5-log-analytics-client-node-6.1.2-1.x86_64.rpm
    
  5. Give the right permissions to the Kibana directory

     chown -R kibana:kibana /usr/share/kibana
    
  6. Perform the start of Kibana and Alert

     systemctl start kibana
     systemctl start alert