Logstash.inputs.jdbc connect to Azure SQL Server throw exception

when I using "authentication=ActiveDirectoryPassword" to connect Azure SQL server. It throw an exception: "Failed to load MSAL4J Java library for performing ActiveDirectoryPassword authentication.".

Logstash Version : 7.17.7

This is my config:

input {
    jdbc {
        jdbc_driver_library => "/usr/share/logstash/expendlib/mssql-jdbc-11.2.0.jre11.jar"
        jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
        jdbc_connection_string => "jdbc:sqlserver://xxxxxx.database.windows.net:1433;databaseName=xxxx;encrypt=true;authentication=ActiveDirectoryPassword;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30;"
        jdbc_user => "xxx@xxxxx.com"
        jdbc_password => 'xxxxxx'
        schedule => "/10 * * * * *"
        jdbc_default_timezone => "Asia/Shanghai"
        jdbc_page_size => "500"
        record_last_run => "true"
        use_column_value => "true"
        tracking_column => "Id"
        last_run_metadata_path => "/config/dataid/xxx_id"
        lowercase_column_names => "false"
        tracking_column_type => "numeric"
        clean_run => "false"
        statement => "select * from table"
        type => "xxxx"
    }
}

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