Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # Sample Logstash configuration for creating a simple
  2. # Beats -> Logstash -> Elasticsearch pipeline.
  3.  
  4. input {
  5. jdbc {
  6. #jdbc_driver_library => "/usr/share/logstash/logstash-core/lib/jars/postgresql-42.2.8.jar"
  7. jdbc_driver_class => "org.postgresql.Driver"
  8. jdbc_connection_string => "jdbc:postgresql://x.y.z.t:5432/bd"
  9. jdbc_user => "xyz"
  10. jdbc_password => "xyz"
  11. schedule => "20 * * * *"
  12. statement => "SELECT * from organization_organization"
  13. #jdbc_validate_connection => true
  14. #use_column_value => true
  15. #tracking_column => "id"
  16. }
  17. }
  18.  
  19.  
  20. output {
  21. elasticsearch {
  22. hosts => ["http://1.1.1.10:9200"]
  23. index => "organization_teste"
  24. document_id => "%{id}"
  25. document_type => "organizacao"
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement