Logstash query Data from Oracle but Output not available in Elastic Search


(Kailash Kumar) #1

#file: db.conf
input {
jdbc{

  jdbc_connection_string => "jdbc:oracle:thin:@localhost:1522:Data"
  jdbc_user => "scott"
  jdbc_password => "tiger123"
  jdbc_driver_library => "C:\tibco\tpcl\5.9\jdbc\ojdbc14.jar"
  jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
  statement => "select * from STUDENT"
  }
  }

output {
stdout { codec => json_lines }
elasticsearch
{
hosts => ["localhost:9200"]

#protocol => "http"
index => "Students"
document_type => "STUDENT"
document_id => "%{id}"
}}

when I http://loclahost:9200 the Elastic search URL I dnt see the output.
I have installed Elastic Search , Logstash and Kibana on windows system.


(Kailash Kumar) #2

the index name was mentioned in camel case which was causing the issue.
once I made it all lower now Im able to see the data in ES
thanks for the support


(system) #3