Skip to content

Create Plugins Offline Package

Roberto Rodriguez edited this page Feb 25, 2019 · 1 revision

If you are installing HELK, and the helk-logstash extra plugins are still being installed over the Internet, you can use the following steps to export them in an zipped offline package to then be loaded to the system that does not have access to the Internet and it is stuck at installing plugins.

Remember that you will need to do this in a system where HELK is already installed and the plugins were installed successfully.

  • Access your helk-logstash docker container in the system where HELK was successfully installed already:
helk@ONLINE-HELK:~$ sudo docker exec -ti helk-logstash bash

bash-4.2$

  • Using the logstash-plugin script prepare and export the plugins offline package
bash-4.2$ bin/logstash-plugin prepare-offline-pack logstash-filter-translate logstash-filter-dns  logstash-filter-cidr  logstash-filter-geoip logstash-filter-dissect  logstash-output-kafka  logstash-input-kafka  logstash-filter-alter  logstash-filter-fingerprint  logstash-filter-prune  logstash-codec-gzip_lines  logstash-codec-netflow  logstash-filter-i18n  logstash-filter-environment  logstash-filter-de_dot  logstash-input-wmi  logstash-filter-clone
Offline package created at: /usr/share/logstash/logstash-offline-plugins-6.6.1.zip

You can install it with this command `bin/logstash-plugin install file:///usr/share/logstash/logstash-offline-plugins-6.6.1.zip`

bash-4.2$ ls /usr/share/logstash/
bin	CONTRIBUTORS  data     Gemfile.lock  LICENSE.txt    logstash-core-plugin-api		modules     output_templates  scripts  vendor
config	cti	      Gemfile  lib	     logstash-core  logstash-offline-plugins-6.6.1.zip	NOTICE.TXT  pipeline	      tools    x-pack

bash-4.2$ exit
exit
  • Copy the offline package from your helk-logstash container to your local system
helk@ONLINE-HELK:~$ sudo docker cp helk-logstash:/usr/share/logstash/logstash-offline-plugins-6.6.1.zip .
helk@ONLINE-HELK:~$ ls
logstash-offline-plugins-6.6.1.zip
  • Copy the logstash-offline-plugins-6.6.1.zip to the OFFLINE-ISOLATED (10.0.10.102) system. You should be able to ssh to it.
helk@ONLINE-HELK:~$ scp logstash-offline-plugins-6.6.1.zip [email protected]:/home/helk/

Now you should be able to use it in the offline-isolated HELK system