# Install .gem file offline in Logstash

**URL:** <https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207>\
**Category:** Logstash\
**Created:** [November 10, 2017, 3:22pm UTC](https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207 "2017-11-10T15:22:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mussa572](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mussa572](https://discuss.elastic.co/u/mussa572)\
**Post date:** [November 10, 2017, 3:22pm UTC](https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207/1 "2017-11-10T15:22:43Z")

</div>

Hi

i am trying to install the **logstash-codec-json\_lines** plugin on one of our Logstash server which does not have internet access . I get following error below message when trying to install the plugin .

I have tried to download the .gem file and tried to use the --local option but it still does not work . Wondering if you can please advise in installing the plugin using the offline .gem file .

1. 

bin/logstash-plugin install --local --no-verify logstash-codec-json\_lines

ERROR: Something went wrong when installing logstash-codec-json\_lines, message: Connection refused - Connection refused

1. 

bin/logstash-plugin install file://usr/share/logstash/logstash-codec-json\_lines-3.0.1.gem

ERROR: File not found for: file://usr/share/logstash/logstash-codec-json\_lines-3.0.1.gem, message: Can't file local file /share/logstash/logstash-codec-json\_lines-3.0.1.gem

1. 

bin/logstash-plugin install --local --no-verify /usr/share/logstash/logstash-codec-json\_lines-3.0.1.gem

ERROR: Something went wrong when installing /usr/share/logstash/logstash-codec-json\_lines-3.0.1.gem, message: Connection refused - Connection refused

Regards

Mussa

---

<div class="post-metadata">

**Author:** ![mussa572](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mussa572](https://discuss.elastic.co/u/mussa572)\
**Post date:** [November 10, 2017, 5:34pm UTC](https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207/2 "2017-11-10T17:34:01Z")

</div>

would Appreciate if someone can advise of above question . We kind of stuck because of this issue .

---

<div class="post-metadata">

**Author:** ![mussa572](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mussa572](https://discuss.elastic.co/u/mussa572)\
**Post date:** [November 11, 2017, 8:35am UTC](https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207/3 "2017-11-11T08:35:59Z")

</div>

Any update on this please

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 13, 2017, 6:28am UTC](https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207/4 "2017-11-13T06:28:37Z")

</div>

See [https://www.elastic.co/guide/en/logstash/current/offline-plugins.html](https://www.elastic.co/guide/en/logstash/current/offline-plugins.html).

---

<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:** [December 11, 2017, 6:28am UTC](https://discuss.elastic.co/t/install-gem-file-offline-in-logstash/107207/5 "2017-12-11T06:28:39Z")

</div>

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