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.