Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logstash TypeError:未将整数隐式转换为字符串_Logstash_Logstash Jdbc - Fatal编程技术网

Logstash TypeError:未将整数隐式转换为字符串

Logstash TypeError:未将整数隐式转换为字符串,logstash,logstash-jdbc,Logstash,Logstash Jdbc,在我的管道中出现了这个问题:TypeError:没有将整数隐式转换为字符串 我正在使用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 a

在我的管道中出现了这个问题:TypeError:没有将整数隐式转换为字符串

我正在使用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中

我遇到了相同的问题,并通过以下步骤解决:

  • 停止你的日志存储服务
  • clean_run=>true添加到jdbc输入中
  • 再次启动日志存储服务
  • 在此之后,logstash将恢复一些内部数据并再次工作


    由于chu()

    为我找到了解决方案。。。麋鹿7.3