Logstash jdbc_static filter and MariaDB

I can't get this to work; My filter config is;

    ..........
    jdbc_driver_class => "org.mariadb.jdbc.Driver"
    jdbc_driver_library => "C:\Users\paul\bitbucket\enrichment\drivers\mariadb-java-client-2.2.2.jar"
    jdbc_connection_string => "jdbc:mariadb://localhost:3306/disclosure"
    ...........

But I get an error on LS start-up of;

[2018-02-27T20:10:22,565][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<LogStash::Filters::Jdbc::ConnectionJdbcException: Java::JavaSql::SQLException: No suitable driver found for jdbc:mariadb://localhost:3306/disclosure>, :backtrace=>["java.sql.DriverManager.getConnection(java/sql/DriverManager.java:689)", "java.sql.DriverManager.getConnection(java/sql/DriverManager.java:247)"

OS is Windows 10 - any suggestions ?

2 Likes

Same problem with me for Logstash 6.2.3
Worked before with 5.2.2

Same problem

As I understand it, some changes to Logstash 6.X and the Java class loading causes this.

We have a change in PR review that fixes this in LS 6.2+

Can we have a link please?

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