# Shield w/ Logstash Offline Install

**URL:** <https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072>\
**Category:** Logstash\
**Tags:** elastic-stack-security\
**Created:** [July 7, 2015, 6:23pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072 "2015-07-07T18:23:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mrc0113](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Mrc0113](https://discuss.elastic.co/u/Mrc0113)\
**Post date:** [July 7, 2015, 6:23pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/1 "2015-07-07T18:23:42Z")

</div>

Hi,

I am installing ELK on a network that does not have internet access and am following the instructions at the link below to get Logstash to work with Shield enabled. However, it seems that the instructions require internet access.  
Link: [https://www.elastic.co/guide/en/shield/current/logstash.html](https://www.elastic.co/guide/en/shield/current/logstash.html)

How can I install the "logstash-output-elasticsearch-shield" logstash plugin without internet access?

```
root@hostname logstash]# bin/plugin install logstash-output-elasticsearch-shield
Validating logstash-output-elasticsearch-shield
Unable to download data from https://rubygems.org/ - SocketError: Network is unreachable (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-elasticsearch-shield

```

Thanks!

---

<div class="post-metadata">

**Author:** ![Paul\_Echeverri](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Paul\_Echeverri](https://discuss.elastic.co/u/Paul_Echeverri)\
**Post date:** [July 7, 2015, 7:14pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/2 "2015-07-07T19:14:38Z")

</div>

Hi!

This worked locally, so with the caveat that I haven't tested the installation to verify it's up and running, it might be worth trying:

- On a machine with Internet access, execute `curl -L -o logstash-output-elasticsearch-shield-1.0.0.gem https://rubygems.org/downloads/logstash-output-elasticsearch-shield-1.0.0.gem`
- Transfer the downloaded `logstash-output-elasticsearch-shield-1.0.0.gem` file to the machine that doesn't have Internet access
- On the target machine, execute `bin/plugin install ./logstash-output-elasticsearch-shield-1.0.0.gem`

Please let me know if this helps!

Paul E  
Sr. Technical Writer, Elastic

---

<div class="post-metadata">

**Author:** ![Mrc0113](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Mrc0113](https://discuss.elastic.co/u/Mrc0113)\
**Post date:** [July 7, 2015, 8:50pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/3 "2015-07-07T20:50:14Z")

</div>

Paul,

Thanks for the response. I downloaded the gem file but when I went to install it I got the following error:

```
    [root@hostname media]# /opt/logstash/bin/plugin install /root/elk_artifacts/media/logstash-output-elasticsearch-shield-1.0.0.gem
Validating /root/elk_artifacts/media/logstash-output-elasticsearch-shield-1.0.0.gem
Installing logstash-output-elasticsearch-shield
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 4/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 5/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 6/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 7/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 8/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 9/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 10/10
Could not fetch specs from https://rubygems.org/
Too many retries, aborting, caused by Bundler::HTTPError
ERROR: Installation Aborted, message: Could not fetch specs from https://rubygems.org/
```

---

<div class="post-metadata">

**Author:** ![Paul\_Echeverri](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Paul\_Echeverri](https://discuss.elastic.co/u/Paul_Echeverri)\
**Post date:** [July 7, 2015, 10:38pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/4 "2015-07-07T22:38:25Z")

</div>

I'm afraid that it looks like you've run into an issue with offline installation; we're opening an issue internally to track it. I'll update you as I know more.

---

<div class="post-metadata">

**Author:** ![Mrc0113](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Mrc0113](https://discuss.elastic.co/u/Mrc0113)\
**Post date:** [July 7, 2015, 10:54pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/5 "2015-07-07T22:54:36Z")

</div>

Thanks Paul!

---

<div class="post-metadata">

**Author:** ![Paul\_Echeverri](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Paul\_Echeverri](https://discuss.elastic.co/u/Paul_Echeverri)\
**Post date:** [July 8, 2015, 12:07am UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/6 "2015-07-08T00:07:29Z")

</div>

You can track this issue on our Logstash Github repo: [https://github.com/elastic/logstash/issues/3571](https://github.com/elastic/logstash/issues/3571)

---

<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, 1:48pm UTC](https://discuss.elastic.co/t/shield-w-logstash-offline-install/25072/7 "2017-07-06T13:48:57Z")

</div>


