When I try to install the prune plugin for logstash, I get the following error. Any help to fix this would be appreciated.
xxx@yyyyyyyy:/usr/local/elastic/logstash-6.2.2$ bin/logstash-plugin install logstash-filter-prune
Validating logstash-filter-prune
IPAddr::InvalidAddressError: invalid address
in6_addr at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/ipaddr.rb:560
initialize at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/ipaddr.rb:497
sender at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:778
block in fetch_resource at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:532
block in resolv at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:1108
each at org/jruby/RubyArray.java:1734
block in resolv at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:1106
each at org/jruby/RubyArray.java:1734
block in resolv at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:1105
each at org/jruby/RubyArray.java:1734
resolv at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:1103
fetch_resource at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:527
each_resource at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:517
getresource at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/resolv.rb:498
api_endpoint at /usr/local/elastic/logstash-6.2.2/lib/bootstrap/patches/remote_fetcher.rb:8
api_uri at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/source.rb:47
load_specs at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/source.rb:187
tuples_for at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/spec_fetcher.rb:267
block in available_specs at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/spec_fetcher.rb:231
each at org/jruby/RubyArray.java:1734
each_source at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/source_list.rb:98
available_specs at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/spec_fetcher.rb:227
search_for_dependency at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/spec_fetcher.rb:103
spec_for_dependency at /usr/local/elastic/logstash-6.2.2/vendor/jruby/lib/ruby/stdlib/rubygems/spec_fetcher.rb:167
logstash_plugin? at /usr/local/elastic/logstash-6.2.2/lib/pluginmanager/util.rb:29
validate_plugin at /usr/local/elastic/logstash-6.2.2/lib/pluginmanager/install.rb:88
block in verify_remote! at /usr/local/elastic/logstash-6.2.2/lib/pluginmanager/install.rb:82
each at org/jruby/RubyArray.java:1734
verify_remote! at /usr/local/elastic/logstash-6.2.2/lib/pluginmanager/install.rb:80
execute at /usr/local/elastic/logstash-6.2.2/lib/pluginmanager/install.rb:57
run at /usr/local/elastic/logstash-6.2.2/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
execute at /usr/local/elastic/logstash-6.2.2/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11
run at /usr/local/elastic/logstash-6.2.2/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
run at /usr/local/elastic/logstash-6.2.2/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132
<main> at /usr/local/elastic/logstash-6.2.2/lib/pluginmanager/main.rb:48