# Offline plugin install

**URL:** <https://discuss.elastic.co/t/offline-plugin-install/98850>\
**Category:** Logstash\
**Created:** [August 30, 2017, 11:54am UTC](https://discuss.elastic.co/t/offline-plugin-install/98850 "2017-08-30T11:54:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [August 30, 2017, 11:54am UTC](https://discuss.elastic.co/t/offline-plugin-install/98850/1 "2017-08-30T11:54:55Z")

</div>

I am attempting an offline install the logstash-filter-cidr plugin on logstash 5.4.

I have tried:

1. Downloading the gem from [rubygems.org](http://rubygems.org) and executing:

```
sudo /usr/share/logstash/bin/logstash-plugin install file:///tmp/logstash-filter-cidr-3.1.1-java.gem
```

And I receive the following error:

```
ERROR: Invalid pack for: file:/tmp/logstash-filter-cidr-3.1.1-java.gem, reason: Invalid format, the pack must be in zip format, message: Invalid format, the pack must be in zip format
```

1. Downloading the zip file from [https://github.com/logstash-plugins/logstash-filter-cidr](https://github.com/logstash-plugins/logstash-filter-cidr) and executing:

```
/usr/share/logstash/bin/logstash-plugin install file:///tmp/logstash-filter-cidr-3.1.1.zip
```

And I receive the following error:

```
Installing file: /tmp/logstash-filter-cidr-3.1.1.zip
ERROR: Invalid pack for: file:///tmp/logstash-filter-cidr-3.1.1.zip, reason: The pack must contains at least one plugin, message: The pack must contains at least one plugin
```

What is the correct method for installing a plugin with no internet access? I did look at the docs and I thought I was performing the steps correctly, obviously not.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![alp](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@alp](https://discuss.elastic.co/u/alp)\
**Post date:** [August 30, 2017, 1:55pm UTC](https://discuss.elastic.co/t/offline-plugin-install/98850/2 "2017-08-30T13:55:44Z")

</div>

I'm trying to do the same, but for a different plugin. So far I wasn't able to find a workaround for this issue. I was going to create new topic, but found this one, so I will sign up for notifications. Will appreciate any help. Thank you!

---

<div class="post-metadata">

**Author:** ![immavalls](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/immavalls/32/146501_2.png) [@immavalls](https://discuss.elastic.co/u/immavalls)\
**Post date:** [August 30, 2017, 1:57pm UTC](https://discuss.elastic.co/t/offline-plugin-install/98850/3 "2017-08-30T13:57:01Z")

</div>

Try to install a plugin on a machine with internet connection, and then just export plugins for offline installation. Documentation can be found here:

[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:** ![tgdesrochers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgdesrochers/32/51322_2.png) [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Post date:** [August 30, 2017, 3:10pm UTC](https://discuss.elastic.co/t/offline-plugin-install/98850/4 "2017-08-30T15:10:00Z")

</div>

is there a way to do it without needing an online machine. It seems that neding an online machine with all the components installed is an unnecessary burden on the customer. It use to be available in older versions of Logstash.

Is there no other way to perorm this task.

---

<div class="post-metadata">

**Author:** ![immavalls](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/immavalls/32/146501_2.png) [@immavalls](https://discuss.elastic.co/u/immavalls)\
**Post date:** [August 30, 2017, 3:18pm UTC](https://discuss.elastic.co/t/offline-plugin-install/98850/5 "2017-08-30T15:18:21Z")

</div>

Sorry, I don't know of any other way. I'd be interested if there is.  
We've gotten used to it. You don't need to configure anything. Just download logstash, unzip it, execute plugin-install of the plugins you want, and execute an export-offline plugins. We've scripted this and run it on machines with internet access. And then we make file available for installation to our internal nexus.

---

<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:** [September 27, 2017, 3:18pm UTC](https://discuss.elastic.co/t/offline-plugin-install/98850/6 "2017-09-27T15:18:57Z")

</div>

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