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¶
Go to installation directory that contain OP5 Log Analytics 6.1.2 files:
cd /root/pkg_6.1.2
Stop the Elasticsearch service
systemctl stop elasticsearch
Backup the elasticsearch-auth plugin
cp –rf /usr/share/elasticsearch/plugins/elasticsearch-auth /root/backup/
Copy the new version of the plugin from the installation directory:
cp -rf elastisearch/elasticearch-auth /usr/share/elasticsearch/plugins/
Grant the appropriate permissions for directories:
chown -R elasticseach:elasticsearch /usr/share/elasticsearch
Start the Elasticsearch service
systemctl start elasticsearch
Client Node update¶
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
Stop the Kibana and Alert services:
systemctl stop kibana systemctl stop alert
Delete the contents of the directory /usr/share/kibana/optimize/bundles/
rm -rf /usr/share/kibana/optimize/bundles/*
Delete the contents of the directory /usr/share/kibana/plugins
rm -rf /usr/share/kibana/plugins/*
Backup current Alert rules folder
cp -pr /opt/alert/rules /root/backup/alert/rules
Delete old version of Alert plugin
rm -rf /opt/alert
Delete old version of AI plugin
rm -rf /opt/ai
Copy the Kibana plugins from the installation directory
cp -rf kibana/plugins/* /usr/share/kibana/plugins/
Copy the Alert plugin from the installation directory
/bin/cp -rf alert /opt/alert
Copy Alert rules folder
cp -pr /root/backup/alert/rules/* /opt/alert/rules/
Copy the Alert plugin from the installation directory
/bin/cp -rf ai /opt/ai
Unpack the node.js modules
tar -xf /usr/share/kibana/plugins/node_modules.tar -C /usr/share/kibana/plugins/
Delete the unnecessary tar.gz archive
/bin/rm -rf /usr/share/kibana/plugins/node_modules.tar
Give the right permissions to the Kibana directory
chown -R kibana:kibana /usr/share/kibana
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¶
- Currently updateing with RPMs is not supported - refer to manual update section when upgrading data node.
Client Node update (GUI)¶
Stop the Kibana and Alert services:
systemctl stop kibana systemctl stop alert
Delete bundles /usr/share/kibana/optimize/bundles/
rm -rf /usr/share/kibana/optimize/bundles/*
Delete the contents of the directory /usr/share/kibana/plugins
rm -rf /usr/share/kibana/plugins/*
Run update with following command:
rpm -Uvh --replacefiles op5-log-analytics-client-node-6.1.2-1.x86_64.rpm
Give the right permissions to the Kibana directory
chown -R kibana:kibana /usr/share/kibana
Perform the start of Kibana and Alert
systemctl start kibana systemctl start alert