input {
jdbc {
jdbc_driver_library => "D:\Data\sqljdbc_6.0\enu\jre8\sqljdbc42.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => "jdbc:sqlserver://xxxxxxx:1433;databaseName=Bxxxr_Post_20170619;"
jdbc_user => "dcra"
jdbc_password => "dcravbl"
statement => "SELECT * FROM SubmissionQuestion"
start_position=> "beginning"
}
}
filter {
}
output {
elasticsearch {
hosts => "http://localhost:9200"
action => "index"
index => "xxxx_Post_20170619"
document_type => "SubmissionQuestion"
manage_template => true
}
stdout { codec => rubydebug }
}