Tag: logstash logstash jdbc

LoadError:没有这样的文件加载 – 续集/适配器/ jdbc

我试图在连接到PostgreSQL容器的Docker容器中运行logstash。 他们正在虚拟dockernetworking中运行。 logstash容器是FROM docker.elastic.co/logstash/logstash:6.0.1 ,除了安装logstash-input-jdbc插件之外什么都不做。 这是logstashpipe道: input { jdbc { jdbc_connection_string => "jbdc:postgresql://172.16.1.101:5432/xxxxxxxx" jdbc_user => "xxxxxxxx" jdbc_password => "12345678" jdbc_driver_library => "/opt/drivers/postgresql-42.1.4.jar" jdbc_driver_class => "org.postgresql.Driver" statement => "select testconfig.fld_name, test.fld_dateended from test, testconfig where test.fld_teststatus_ref=1 and test.fld_testconfig_ref=testconfig.fld_testconfig_id" } } output { stdout { codec => json_lines } } 这是它的输出: Pipeline_id:main Plugin: <LogStash::Inputs::Jdbc jdbc_connection_string=>"jbdc:postgresql://172.16.1.101:5432/xxxxxxxx", jdbc_user=>"xxxxxxxx", jdbc_password=><password>, […]