我想知道将MySQL DB连接到logstash, 这是配置文件simple.conf
的代码input {
jdbc {
jdbc_driver_library => "C:\Users\GWL\Downloads\mysql-connector-java-5.1.48\mysql-connector-java-5.1.48-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/jobschema"
jdbc_user => "root"
statement => "SELECT * FROM logplugin "
}
}
抛出错误错误:com.mysql.jdbc.Driver未加载。您确定在jdbc_driver_library中包含正确的JDBC驱动程序吗?
Exception: LogStash::PluginLoadingError