# Installation of prune plugin fails on Logstash 6.2.2

**URL:** <https://discuss.elastic.co/t/installation-of-prune-plugin-fails-on-logstash-6-2-2/127662>\
**Category:** Logstash\
**Created:** [April 11, 2018, 3:14pm UTC](https://discuss.elastic.co/t/installation-of-prune-plugin-fails-on-logstash-6-2-2/127662 "2018-04-11T15:14:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaccardo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaccardo/32/30090_2.png) [@gaccardo](https://discuss.elastic.co/u/gaccardo)\
**Post date:** [April 11, 2018, 3:14pm UTC](https://discuss.elastic.co/t/installation-of-prune-plugin-fails-on-logstash-6-2-2/127662/1 "2018-04-11T15:14:48Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 9, 2018, 3:14pm UTC](https://discuss.elastic.co/t/installation-of-prune-plugin-fails-on-logstash-6-2-2/127662/2 "2018-05-09T15:14:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
