Advertisement
denis_malko

Untitled

Mar 8th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.64 KB | None | 0 0
  1. This filter executes a SQL query and store the result set in the field specified as target. It will cache the results locally in an LRU cache with expiry
  2.  
  3. For example you can load a row based on an id from in the event
  4.  
  5. filter {
  6.   jdbc_streaming {
  7.     jdbc_driver_library => "/path/to/mysql-connector-java-5.1.34-bin.jar"
  8.     jdbc_driver_class => "com.mysql.jdbc.Driver"
  9.     jdbc_connection_string => ""jdbc:mysql://localhost:3306/mydatabase"
  10.     jdbc_user => "me"
  11.     jdbc_password => "secret"
  12.     statement => "select * from WORLD.COUNTRY WHERE Code = :code"
  13.     parameters => { "code" => "country_code"}
  14.     target => "country_details"
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement