I put jdbc42.jar file as jdbc_driver_library
in this path:
D:\logstash-5.6.3\tools\ingest-converter\build\libs\sqljdbc42.jar
As the jdbc input plugin of logstash I create below file in bin path of logstash :
file: simple-out.conf
input {
jdbc {
jdbc_connection_string => "jdbc:sqlserver://localhost:1433/user=Elasticsearch;password=parsaparsa"
jdbc_user => "Elasticsearch"
jdbc_validate_connection => true
jdbc_driver_library => "/tools/ingest-converter/build/libs/sqljdbc42.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
statement => "SELECT * from Video"
}
}
output {
elasticsearch {
protocol => http
index => "Video"
document_type => "video"
document_id => "%{uid}"
host => "localhost:9200"
}
}
And I run this command at cmd :
bin/logstash -f simple-out.conf Logstash startup
first : I get this error
ERROR: Unknown command 'Logstash'
second : is my conf file OK or what is wrong in my work?