Guest User

Untitled

a guest
Apr 1st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_connection_string => "jdbc:mysql://localhost:3306/sample"
  4. jdbc_user => "root"
  5. jdbc_password => "adminmysql"
  6. # The path to our downloaded jdbc driver
  7. jdbc_driver_library => "/Users/robertofernandez/libs/mysql-connector-java-5.1.25.jar"
  8. jdbc_driver_class => "com.mysql.jdbc.Driver"
  9. # our query
  10. schedule => "*/2 * * * *"
  11. #statement => "SELECT * FROM muser"
  12. statement => "SELECT * FROM muser where created_date > :sql_last_value order by created_date"
  13. use_column_value => true
  14. tracking_column => created_date
  15. }
  16. }
  17. output {
  18. stdout { codec => json_lines }
  19. elasticsearch {
  20. "hosts" => "localhost:9200"
  21. "index" => "muser"
  22. "document_type" => "data"
  23. "document_id" => "%{id}"
  24. }
  25. }
Add Comment
Please, Sign In to add comment