Advertisement
Guest User

Untitled

a guest
Oct 31st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_driver_library => "/usr/share/java/mysql-connector-java-5.1.28.jar"
  4. jdbc_driver_class => "com.mysql.jdbc.Driver"
  5. jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/cts_ha1?zeroDateTimeBehavior=convertToNull&ha1?zeroDateTimeBehavior=convertToNull"
  6. jdbc_user => "root"
  7. jdbc_password => "root"
  8. schedule => "* * * * * "
  9. statement => "select * from `sug_ha1`.`cts_event_control` AS e
  10. JOIN
  11. `sug_ha1`.`cts_event_control_cstm` AS c ON c.id_c = e.id
  12. LEFT JOIN
  13. `cts_ha1`.`events` ctsE ON c.event_id_c = ctsE.event_id
  14. LEFT JOIN
  15. `cts_ha1`.`series` ctsS ON c.series_id_c = ctsS.series_id"
  16. type => "series_events"
  17. }
  18. # add more jdbc inputs to suit your needs
  19. }
  20. filter {
  21. if["evtlist_date_c"]=="0000-00-00" {
  22. mutate {
  23. replace => { "evtlist_date_c" => null }
  24. }
  25. }
  26. }
  27. output {
  28. elasticsearch {
  29. document_id => "%{id}"
  30. index => "ha1"
  31. document_type => "%{type}"
  32. hosts => "http://127.0.0.1:15100"
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement