I'm following the procedures here https://www.elastic.co/guide/en/logstash/current/offline-plugins.html#building-offline-packs
I need to install the development plugins to an environment that does not have internet connection. On an external staging server I installed them
$ /usr/share/logstash/bin/logstash-plugin install --development Installing logstash-devutils, logstash-input-generator, logstash-codec-json, logstash-output-null, benchmark-ips, rspec, logstash-patterns-core, logstash-filter-grok, flores, stud, pry, rspec-wait, childprocess, ftw, logstash-output-elasticsearch, rspec-sequencing, gmetric, gelf, timecop, jdbc-derby, jdbc-mysql, jar-dependencies, logstash-codec-plain, logstash-codec-json_lines, addressable, json, gzip, elasticsearch, logstash-filter-kv, logstash-filter-ruby, sinatra, webrick, poseidon, snappy, webmock, logstash-codec-line Installation successful
I assume the list of items echoed is the set of plugins that I need to pack for the offline install, so I then did
$ /usr/share/logstash/bin/logstash-plugin prepare-offline-pack --overwrite logstash-devutils logstash-input-generator logstash-codec-json logstash-output-null benchmark-ips rspec logstash-patterns-core logstash-filter-grok flores stud pry rspec-wait childprocess ftw logstash-output-elasticsearch rspec-sequencing gmetric gelf timecop jdbc-derby jdbc-mysql jar-dependencies logstash-codec-plain logstash-codec-json_lines addressable json gzip elasticsearch logstash-filter-kv logstash-filter-ruby sinatra webrickposeidon snappy webmock logstash-codec-line
But get this error
ERROR: Offline package, message: Cannot explicitly pack 'jar-dependencies' for offline installation
How can I get the development plugins into my offline environment?
Also to note, I initially tried within my restricted environment to utilize the Artifactory proxy that was available to access rubygems and updated the gemfiles as documented here https://www.elastic.co/guide/en/logstash/current/private-rubygem.html. That seemed to get the gems, but some part of this development set of plugins is attempting to also reach the apache maven repositories and failed. I have no idea how to be able to redirect that to my Artifactory based URLs (which is why I went looking for the offline solution)
Nov 03, 2017 8:57:41 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://repo.maven.apache.org:443: No route to host