Advertisement
Guest User

Untitled

a guest
Mar 17th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_connection_string => "jdbc:mysql://localhost/elasticsearch"
  4. jdbc_user => "root"
  5. jdbc_password => "empower"
  6. #jdbc_validate_connection => true
  7. jdbc_driver_library => "/home/wtc082/Documents/com.mysql.jdbc_5.1.5.jar"
  8. jdbc_driver_class => "com.mysql.jdbc.Driver"
  9. statement => "SELECT * FROM index_part_content_local LIMIT 10;"
  10. schedule => "1 * * * *"
  11. #codec => "json"
  12. }
  13. }
  14.  
  15. output {
  16. elasticsearch {
  17. index => "mysqltest"
  18. document_type => "mysqltest_type"
  19. document_id => "%{partnum}"
  20. hosts => "AWSURI"
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement