Guest User

Untitled

a guest
Jun 14th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_driver_library => "D:1SearchEnginedataojdbc8.jar"
  4. jdbc_driver_class => "Java::oracle.jdbc.OracleDriver"
  5. jdbc_connection_string => "jdbc:oracle:thin:@localhost:1521:XE"
  6. jdbc_user => "demo"
  7. jdbc_password => "1234567"
  8. statement => 'select vp.id, LISTSTAGG(vp.code,",")within GROUP(order by vp.code)"CODE", LISTAGG(vbl.product_id,",")within GROUP(order by vbl.product_id)"PRODUCT_ID",LISTAGG(vbl.type,",")within GROUP(order by vbl.type)"TYPE" from product vp,PRODUCT_LINK vbl where vp.id = vbl.product_id group by id,vbl.product_id,vbl.type'
  9. }
  10. }
  11.  
  12. output {
  13. elasticsearch {
  14. hosts => ["localhost:9200"]
  15. index => "replacement"
  16. }
  17. }
  18.  
  19. [2018-06-14T16:31:56,472][WARN ][logstash.inputs.jdbc ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::JavaSql::SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
Add Comment
Please, Sign In to add comment