您当前的位置: 首页 >> 关注 > >> 内容页

全球球精选!logstash增量同步MySQL关于sql_last_value取值失败的问题

2023-04-03 18:30:41 来源:腾讯云


(相关资料图)

官网

https://www.elastic.co/guide/en/logstash/7.17/plugins-inputs-jdbc.html#plugins-inputs-jdbc

常见问题

use_column_value => truetracking_column => "tracking_time"# 这两行配置是一起用的,当 use_column_value 取值为true 时,sql_last_value 会跟踪 tracking_column 指定的字段的值,这里指定的是 "tracking_time" 这个字段# 当 tracking_time 为 date类型,还需要指定tracking_column_type => "timestamp" #因为该参数默认为 "numeric"
# 当 use_column_value 取值为 false 时,sql_last_value 默认取值为 last_run_metadata_path 中记录 Path to file with last run timelast_run_metadata_path => "/usr/local/service/logstash/temp/sql_last_value.yml"# 手动指定该值需要赋予正确的值,文件必须是 yml格式,且父级目录必须存在,例如"/usr/local/service/logstash/temp/sql_last_value.yml"

常用input & filter & output

关键词:
分享到:
x 广告
x 广告

  Copyright @ 2001-2013 www.9774.com.cn All Rights Reserved 中国时尚网 版权所有

联系方式:954 29 18 82 @qq.com

   粤ICP备18025786号  营业执照公示信息   未经吉中国时尚网书面授权,请勿建立镜像,转载请注明来源,违者依法必究

关于我们 | 联系方式 | 版权声明 | 招聘信息 | 友情链接 | 合作伙伴 |