Advertisement
Kulasangar

my.conf

Oct 28th, 2016
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_connection_string => "jdbc:mysql://myhostmachine:3306/mydb"
  4. jdbc_user => "root"
  5. jdbc_password => "root"
  6. jdbc_validate_connection => true
  7. jdbc_driver_library => "/home/chamith/work/ELK/mysql_jar/mysql-connector-java-5.1.39-bin.jar"
  8. jdbc_driver_class => "com.mysql.jdbc.Driver"
  9. statement => "SELECT * from tablename"
  10. schedule => "* * * * *"
  11. jdbc_paging_enabled => "true"
  12. jdbc_page_size => "50000"
  13. }
  14. }
  15.  
  16. filter {
  17. mutate {
  18. add_field => [ "datetime", "%{created_date}" ]
  19. convert => { "amount" => "float" }
  20. }
  21. date {
  22. locale => "en"
  23. timezone => "Pacific/Easter"
  24. match => ["datetime", "yyyy-MM-dd'T'HH:mm:ss.SSSZ"]
  25. target => "datetime"
  26. }
  27. }
  28.  
  29. output {
  30. elasticsearch {
  31. #protocol => http
  32. index => "payment_transaction5"
  33. document_type => "message_logs"
  34. document_id => "%{id_order}"
  35. action => index
  36. hosts => ["http://myhostmachine:9402"]
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement