# Install a logstash-plugin from a local gem repository

**URL:** <https://discuss.elastic.co/t/install-a-logstash-plugin-from-a-local-gem-repository/127586>\
**Category:** Logstash\
**Created:** [April 11, 2018, 8:11am UTC](https://discuss.elastic.co/t/install-a-logstash-plugin-from-a-local-gem-repository/127586 "2018-04-11T08:11:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dee/32/18876_2.png) [@Dee](https://discuss.elastic.co/u/Dee)\
**Post date:** [April 11, 2018, 8:11am UTC](https://discuss.elastic.co/t/install-a-logstash-plugin-from-a-local-gem-repository/127586/1 "2018-04-11T08:11:42Z")

</div>

I have a local gem repository which is configured on my host's gem sources.  
When I run the logstash plugin command to install a plugin, it says that it failed to connect to [rubygems.org](http://rubygems.org) (which is OK).  
Is there a way to tell logstash-plugin to take my local gem repo address into consideration when looking for this gem?

Thanks,

---

<div class="post-metadata">

**Author:** ![Dee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dee/32/18876_2.png) [@Dee](https://discuss.elastic.co/u/Dee)\
**Post date:** [April 11, 2018, 11:33am UTC](https://discuss.elastic.co/t/install-a-logstash-plugin-from-a-local-gem-repository/127586/2 "2018-04-11T11:33:08Z")

</div>

Adding that unpacking the gem and editing the Gemfile is not possible for me since the repository URL changes between environments.

Thanks,

---

<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, 11:33am UTC](https://discuss.elastic.co/t/install-a-logstash-plugin-from-a-local-gem-repository/127586/3 "2018-05-09T11:33:17Z")

</div>

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