Hi JoeB,
As Robert H said, you should use a different syntax for installing plugins locally.
The right usage should be the next one:
sudo -u kibana NODE_OPTIONS="--max-old-space-size=3072" /usr/share/kibana/bin/kibana-plugin install file:///absolute_path/wazuhapp-3.8.2_6.7.0.zip
Let’s say your wazuhapp-3.8.2_6.7.0.zip was downloaded in /home/foo/downloads, then your command should look like this:
sudo -u kibana NODE_OPTIONS="--max-old-space-size=3072" /usr/share/kibana/bin/kibana-plugin install file:///home/foo/downloads/wazuhapp-3.8.2_6.7.0.zip
Note that /home/foo/downloads must be reachable for the user kibana. My suggestion is to install it from /tmp or some other directory where we are sure aboutkibana user permissions.
mv /home/foo/downloads/wazuhapp-3.8.2_6.7.0.zip /tmp/wazuhapp-3.8.2_6.7.0.zip
sudo chown -R kibana:kibana /usr/share/kibana/optimize
sudo chown -R kibana:kibana /usr/share/kibana/plugins
sudo -u kibana NODE_OPTIONS="--max-old-space-size=3072" /usr/share/kibana/bin/kibana-plugin install file:///tmp/wazuhapp-3.8.2_6.7.0.zip
systemctl restart kibana
Command explained:
sudo -u kibana. The effective user for installing the plugin.NODE_OPTIONS="--max-old-space-size=3072". Avoids OOM errors./usr/share/kibana/bin/kibana-plugin. Kibana tool for plugin management.install argument for kibana-plugin for installing.file://. Think about it like http://, just another “protocol”./tmp/wazuhapp-3.8.2_6.7.0.zip the full path to the plugin, accessible by kibana user.I hope it helps.
Best regards,
Jesús