Guest User

Untitled

a guest
Jun 18th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. id link_id code Type
  2. 1001 2001 ABC-123 Reg
  3. 1002 2002 ABC-345 Reg
  4. 1003 2003 ABC-123 Act
  5. 1004 2004 ABC-123 Reg
  6.  
  7. {
  8. "took": 4,
  9. "timed_out": false,
  10. "_shards": {
  11. "total": 5,
  12. "successful": 5,
  13. "skipped": 0,
  14. "failed": 0
  15. },
  16. "hits": {
  17. "total": 9,
  18. "max_score": 12.906438,
  19. "hits": [
  20. {
  21. "_index": "replacement",
  22. "_type": "doc",
  23. "_id": "VizyEWQB3JLlyWOUWyyY",
  24. "_score": 12.906438,
  25. "_source": {
  26. "@timestamp": "2018-06-18T08:10:53.037Z",
  27. "@version": "1",
  28. "link_id": 2001,
  29. "type": null,
  30. "id": null, // ----> this is have some value in oracle DB
  31. "code": "ABC-123",
  32. }
  33. },
  34.  
  35. input {
  36. jdbc {
  37. jdbc_driver_library => "D:1SearchEnginedataojdbc8.jar"
  38. jdbc_driver_class => "Java::oracle.jdbc.OracleDriver"
  39. jdbc_connection_string => "jdbc:oracle:thin:@localhost:1525:XE"
  40. jdbc_user => "demo"
  41. jdbc_password => "abc2011"
  42. statement => "select * from product
  43. FULL OUTER JOIN product_link
  44. ON product.id=product_link.product_id
  45. }
  46. }
  47.  
  48. output {
  49. elasticsearch {
  50. hosts => ["localhost:9200"]
  51. index => "replacement"
  52. }
  53. }
Add Comment
Please, Sign In to add comment