Guest User

Untitled

a guest
Jan 28th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_connection_string => "jdbc:mysql://localhost:3306/testdb"
  4. # The user we wish to execute our statement as
  5. jdbc_user => "root"
  6. jdbc_password => "123456"
  7. # The path to our downloaded jdbc driver
  8. jdbc_driver_library => "/home/comp/Downloads/mysql-connector-java-5.1.38.jar"
  9. jdbc_driver_class => "com.mysql.jdbc.Driver"
  10. # our query
  11. statement => "SELECT * FROM testtable"
  12. }
  13. }
  14. output {
  15. stdout { codec => json_lines }
  16. elasticsearch {
  17. "hosts" => "localhost:9200"
  18. "index" => "test-migrate"
  19. "document_type" => "data"
  20. }
  21. }
Add Comment
Please, Sign In to add comment