[Solved] Logstash Error: com.mysql.jdbc.Driver not loaded. Are you sure you’ve included the correct jdbc driver in :jdbc_driver_library

This is because the plug-in logstash input JDBC needs to be used,

Because the plug-in is developed by ruby, you need to install the ruby environment on your computer first, and then install the rubygems plug-in

Enter the logstash input JDBC directory and execute gem build logstash input jdbc.gemspec from the command line,

After the command is executed, a logstash-input-jdbc-xxx.gem file will be generated,

Copy this file to the bin directory of logstash, and execute./logstash plugin install logstash-input-jdbc-xxx.gem on the command line. After the installation is completed.

Logstash can start normally

Similar Posts: