# How to install logstash-input-jdbc in Off-line environment(windows)

**URL:** https://discuss.elastic.co/t/how-to-install-logstash-input-jdbc-in-off-line-environment-windows/26456
**Category:** Logstash
**Created:** [July 29, 2015, 4:58am UTC](https://discuss.elastic.co/t/how-to-install-logstash-input-jdbc-in-off-line-environment-windows/26456 "2015-07-29T04:58:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kikuchan](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kikuchan](https://discuss.elastic.co/u/kikuchan)
#### Post date: [July 29, 2015, 4:58am UTC](https://discuss.elastic.co/t/how-to-install-logstash-input-jdbc-in-off-line-environment-windows/26456/1 "2015-07-29T04:58:17Z")

</div>

## hello. I tried to use logstash-input-jdbc using followed command :plugin install C:/local/logstash-input-jdbc-1.0.0.gem. But it is showing following error,

## Validating C:/local/logstash-input-jdbc-1.0.0.gem Installing logstash-input-jdbc Error Bundler::HTTPErro, retrying 1/10 Could not fetch specs from [https://rubygems.org/](https://rubygems.org/)

I know that this error is not connected error to [https://rubygems.org/](https://rubygems.org/).  
I need to install logstash-input-jdbc in Off-line environment.

how to install jdbc plugin in windows machine(Off-line environment)?

---

<div class="post-metadata">

### Author: ![purbon](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@purbon](https://discuss.elastic.co/u/purbon)
#### Post date: [July 30, 2015, 10:52am UTC](https://discuss.elastic.co/t/how-to-install-logstash-input-jdbc-in-off-line-environment-windows/26456/2 "2015-07-30T10:52:48Z")

</div>

HI,  
the problem you are encountering here is with the dependencies of the plugin, you actually need them to have the plugin installed and the `.gem` files hasn't them. For now, and until we have [https://github.com/elastic/logstash/pull/3404](https://github.com/elastic/logstash/pull/3404) merged, the easiest path for you will be to install the plugin in a machine with internet, including the dependencies and then move this to your offline environment.

Does this help your for now?

---

<div class="post-metadata">

### Author: ![kikuchan](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kikuchan](https://discuss.elastic.co/u/kikuchan)
#### Post date: [July 31, 2015, 5:25am UTC](https://discuss.elastic.co/t/how-to-install-logstash-input-jdbc-in-off-line-environment-windows/26456/3 "2015-07-31T05:25:05Z")

</div>

Thank you for your answer.  
I understand that logstash-input-jdbc should be installed in a machine with Internet.

I read [https://github.com/elastic/logstash/pull/3404](https://github.com/elastic/logstash/pull/3404) ,but I don't understand these contents.

I guess if I want to install plugins(logstash-input-jdbc) with offline,I should have skills of Ruby.  
therefore, I am trying to learn Ruby.

Sincerely.

---

<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, 5:33am UTC](https://discuss.elastic.co/t/how-to-install-logstash-input-jdbc-in-off-line-environment-windows/26456/4 "2017-07-06T05:33:16Z")

</div>


