Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_driver_library => "/config-dir/lib/mysql-connector-java-5.1.39-bin.jar"
  4. jdbc_driver_class => "com.mysql.jdbc.Driver"
  5. jdbc_connection_string => "jdbc:mysql://mysql:3306/db"
  6. jdbc_user => ""
  7. jdbc_password => ""
  8. type => "database"
  9. statement => "select * from test where id > :sql_last_value" # query should include sql_last_value
  10. schedule => "* * * * * *"
  11. jdbc_paging_enabled => true
  12. jdbc_page_size => "5000"
  13. use_column_value => true
  14. tracking_column => id
  15. }
  16. }
  17.  
  18. output {
  19. file {
  20. path => "/opt/logstash/log.txt"
  21. }
  22. stdout {
  23. codec => rubydebug
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement