Guest User

Untitled

a guest
Feb 23rd, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_driver_library => "C:\logstash-6.1.1\bin\mssql-jdbc-6.2.2.jre8.jar"
  4. jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  5. jdbc_connection_string => "jdbc:sqlserver://localhost:1433;databasename=AppDataBase;user=sa;password=******"
  6. jdbc_user => "sa"
  7. jdbc_password => "****"
  8. jdbc_pool_timeout => 30
  9. jdbc_validate_connection => true
  10. statement => "select
  11. Vendasid CodigoDaVenda,
  12. DataVenda DataDaVenda,
  13. Produtos Produto,
  14. EntregaEm EnderecoDeEntrega,
  15. Vendas.VendedoresID CodigoDoVendedor,
  16. Nome Vendedor,
  17. Nascimento DataDeNascimento
  18. from Vendas
  19. inner join Vendedores on Vendas.VendedoresID = Vendedores.VendedoresID
  20. "
  21. schedule => "* * * * *"
  22. }
  23. }
  24. output {
  25. elasticsearch {
  26. hosts => [ "localhost:9200" ]
  27. index => "vendas5"
  28. document_id => "%{codigodavenda}"
  29. }
  30. stdout {
  31. codec => json_lines
  32. }
  33. }
Add Comment
Please, Sign In to add comment