# Issue while installing custom logstash gem filter with logstash 2.3.1

**URL:** <https://discuss.elastic.co/t/issue-while-installing-custom-logstash-gem-filter-with-logstash-2-3-1/48296>\
**Category:** Logstash\
**Created:** [April 25, 2016, 9:54am UTC](https://discuss.elastic.co/t/issue-while-installing-custom-logstash-gem-filter-with-logstash-2-3-1/48296 "2016-04-25T09:54:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asgawali](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@asgawali](https://discuss.elastic.co/u/asgawali)\
**Post date:** [April 25, 2016, 9:54am UTC](https://discuss.elastic.co/t/issue-while-installing-custom-logstash-gem-filter-with-logstash-2-3-1/48296/1 "2016-04-25T09:54:05Z")

</div>

I was using logstash 1.5.4 and was able to install custom logstash filter received from third party team, now I have updated the logstash from 1.5.4 to 2.3.1 and when I try to install logstash filter it gives me following error:

```
failed: [site1elk01] => {"changed": true, "cmd": "/opt/logstash/bin/logstash-plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem", "delta": "0:00:11.883231", "end": "2016-04-25 00:38:30.545048", "rc": 1, "start": "2016-04-25 00:38:18.661817", "warnings": []}
stderr: Error Bundler::GemspecError, retrying 1/10
There was a Errno::ENOENT while loading logstash-filter-abc.gemspec:
No such file or directory - git from
  /opt/logstash/vendor/local_gems/bdd6b4de/logstash-filter-abc-1.0.0/logstash-filter-abc.gemspec:14:in `eval_gemspec'
No such file or directory - git from
  /opt/logstash/vendor/local_gems/a945cf06/logstash-filter-abc-1.0.0/logstash-filter-abc.gemspec:14:in `eval_gemspec'
Too many retries, aborting, caused by Bundler::GemspecError
ERROR: Installation Aborted, message: There was a Errno::ENOENT while loading logstash-filter-abc.gemspec:
No such file or directory - git from
  /opt/logstash/vendor/local_gems/a945cf06/logstash-filter-abc-1.0.0/logstash-filter-abc.gemspec:14:in `eval_gemspec'
stdout: Validating /opt/logstash/logstash-filter-abc-1.0.0.gem
Installing logstash-filter-abc

```

Earlier in 1.5.4 I was using below command to install the filter:

`/opt/logstash/bin/plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem`

Now after it gave me error to use logstash-plugin from bin folder I am using following:

```
/opt/logstash/bin/logstash-plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem

```

Any help here as what could be the issue?

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![RdrgPorto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdrgporto/32/13278_2.png) [@RdrgPorto](https://discuss.elastic.co/u/RdrgPorto)\
**Post date:** [November 18, 2016, 10:47am UTC](https://discuss.elastic.co/t/issue-while-installing-custom-logstash-gem-filter-with-logstash-2-3-1/48296/2 "2016-11-18T10:47:08Z")

</div>

Hi,

I think that there is a problem with **code's gem**. I saw this problem some time ago : [Issue](https://github.com/elastic/logstash/issues/3117).

You can try to install **Git** and execute _"bin/plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem"_ again (with access to Internet) or edit code's gem.

Regards

---

<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:** [July 6, 2017, 4:30am UTC](https://discuss.elastic.co/t/issue-while-installing-custom-logstash-gem-filter-with-logstash-2-3-1/48296/3 "2017-07-06T04:30:23Z")

</div>


