Hi everyone
in Logstash pipeline I have the following connection string:
jdbc_user => "DomainName\UserName"
But looks like using "" is not working
input {
jdbc {
jdbc_validate_connection => true
jdbc_driver_library => "/opt/sqljdbc41.jar"
jdbc_driver_class => "jdbc:com.microsoft.jdbc.sqlserver.SQLServerDriver"
jdbc_connection_string => "microsoft:sqlserver://10.91.18.56:1433;DatabaseName=master"
jdbc_user => "myDomain\myDBUser"
jdbc_password => "myPwd"
statement => "select 1"
schedule => "*/1 * * * *"
}
}
filter {
}
output {
stdout { codec => rubydebug }
}
The Error it throws is as following:
Unable to connect to database. Tried 1 times {:error_message=>"Java::ComMicrosoftSqlserverJdbc::SQLServerException: Login failed for user 'myDomain\\myDBUser'. ClientConnectionId:
I have no way to get ride of Domain as the logstash is running on a different domain.
Can anyone come with a way to fix this?
Regards,
Ginu