在我的管道中出现了这个问题:TypeError: no implicit conversion of Integer into String
我正在使用 centos7 并且我已经通过 yum 安装了它
# Sample Logstash configuration for creating a simple
input {
jdbc {
jdbc_connection_string => "jdbc:oracle:thin:@0.0.0.0:1521:DB"
# The user we wish to execute our statement as
jdbc_user => "******"
jdbc_password => "*******"
# The path to our downloaded jdbc driver
jdbc_driver_library => "\etc\logstash\conf.d\jdbc\ojdbc7.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
# our query
statement => "select * from test"
}
}
output {
stdout { codec => json_lines }
elasticsearch { }
}
预计将数据插入elasticsearch