Advertisement
arberd

logstash2.conf

Feb 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_driver_library => "opt/logstash/mariadb-java-client-1.5.8.jar"
  4. jdbc_driver_class => "org.mariadb.jdbc.Driver"
  5. jdbc_connection_string => "jdbc:mariadb://212.129.16.243/crosswor_db"
  6. jdbc_user => "crosswor_db"
  7. jdbc_password => "jonian12"
  8. parameters => {
  9. }
  10. # schedule => "* * * * *"
  11. statement => "SELECT * FROM answers WHERE id > :sql_last_value"
  12. use_column_value => true
  13. tracking_column => id
  14. }
  15. }
  16.  
  17. output {
  18. elasticsearch {
  19. hosts => ["192.168.0.109:9200"]
  20. index => "answers"
  21. document_type => "data"
  22. document_id => "%{id}"
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement