Guest User

Untitled

a guest
Feb 7th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_connection_string => "jdbc:sqlserver://localhost:1433;databaseName=test"
  4. # The user we wish to execute our statement as
  5. jdbc_user => "sa"
  6. jdbc_password => "sasa"
  7. # The path to our downloaded jdbc driver
  8. jdbc_driver_library => "C:Usersabhijitb.m2repositorycommicrosoftsqlservermssql-jdbc6.2.2.jre8mssql-jdbc-6.2.2.jre8.jar"
  9. jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  10. #clean_run => true
  11. schedule => "* * * * *"
  12. #query
  13. statement => "SELECT * FROM Student where studentid > :sql_last_value"
  14. use_column_value => true
  15. tracking_column => "studentid"
  16. }
  17. }
  18.  
  19. output {
  20. #stdout { codec => json_lines }
  21. elasticsearch {
  22. "hosts" => "localhost:9200"
  23. "index" => "student"
  24. "document_type" => "data"
  25. "document_id" => "%{studentid}"
  26. }
  27. }
Add Comment
Please, Sign In to add comment