# How to install logstash jdbc plugin

**URL:** <https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842>\
**Category:** Logstash\
**Created:** [November 22, 2018, 9:38am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842 "2018-11-22T09:38:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://discuss.elastic.co/u/vishruti)\
**Post date:** [November 22, 2018, 9:38am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/1 "2018-11-22T09:38:06Z")

</div>

I have installed ELK, I installed Jruby and Bundler with gems as described byhttps://github.com/logstash-plugins/logstash-input-jdbc

I seperately downloaded Jruby and installed gems.

I think the next step is to install logstash-input-jdbc, But how do I install it in Ubuntu. I have seen many links like; [Logstash jdbc plugin not installed](https://discuss.elastic.co/t/logstash-jdbc-plugin-not-installed/106800).

But Im unable to install or sudo apt-get in the /usr/share/logstash.

And secondly, How to run logstash in Ubuntu like mentioned here: [https://www.elastic.co/blog/logstash-jdbc-input-plugin](https://www.elastic.co/blog/logstash-jdbc-input-plugin)

But I am running with errors. Please help.

---

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [November 27, 2018, 4:36am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/2 "2018-11-27T04:36:00Z")

</div>

Hi..

$ cd /usr/share/logstash  
And after the above command run the following command:  
bin/logstash-plugin install logstash-input-jdbc

So after this we have successfully installed logstash jdbc plugin. You will see on screen successful message.  
This plugin does not come packaged with JDBC driver libraries. The desired jdbc driver library must be explicitly passed in to the plugin using the jdbc\_driver\_library configuration option.

---

<div class="post-metadata">

**Author:** ![agataplewa37](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@agataplewa37](https://discuss.elastic.co/u/agataplewa37)\
**Post date:** [November 27, 2018, 11:59am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/3 "2018-11-27T11:59:38Z")

</div>

> [@vishruti](#):
>
> byhttps://github.com/logstash-plugins/logstash-input-jdbc

Hello! Thank you for the post. I have exactly the same problem. I have just tried installing jdbc plugin using "logstash-plugin install logstash-input-jdbc":

logstash-6.5.1\bin\>logstash-plugin install logstash-input-jdbc

and I get this:  
"could not find jruby in C:\elk\logstash-6.5.1\vendor\jruby"  
Your answer: "This plugin does not come packaged with JDBC driver libraries. The desired jdbc driver library must be explicitly passed in to the plugin using the jdbc\_driver\_library configuration option." is a good hint but could someone explain how to explicitly pass jdbc driver library to the plugin?

---

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [November 28, 2018, 5:50am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/4 "2018-11-28T05:50:00Z")

</div>

Go to cd /usr/share/logstash and then install plugin...

If you are using binary file of logstash then just go to the logstash dir and then install..like in the below image...I am using binary files...

$cd logstash-6.4.0

logstash-6.4.0$ bin/logstash-plugin install logstash-codec-avro

---

<div class="post-metadata">

**Author:** ![agataplewa37](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@agataplewa37](https://discuss.elastic.co/u/agataplewa37)\
**Post date:** [November 28, 2018, 9:42am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/5 "2018-11-28T09:42:54Z")

</div>

Hi Shekkar\_Pandy,

Thank you very much for your advice.

However I had discovered that in my case the reason for error was that I installed Java and set up JAVA-HOME after installing elasticsearch, logstash and kibana. The result was that not all of the folders unpacked from the zip folder. So I deleted logstash folder and extracted them again to elk folder on C:\ drive. This time all folders extracted and installed correctly, including vendor folder with Jruby in it.

![](https://us1.discourse-cdn.com/elastic/original/3X/0/8/08510993fd2ac1be3306b30d31248c050332925a.jpeg)

---

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://discuss.elastic.co/u/vishruti)\
**Post date:** [December 6, 2018, 9:08am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/6 "2018-12-06T09:08:50Z")

</div>

thank you so much for your response

---

<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:** [January 3, 2019, 9:08am UTC](https://discuss.elastic.co/t/how-to-install-logstash-jdbc-plugin/157842/7 "2019-01-03T09:08:50Z")

</div>

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