Logstash同步Invalid format: \“2019-12-20T15:18:13.000Z\“ is malformed at \“-12-20T15:18:13.000Z\“解决方案

简介: Logstash同步Invalid format: \“2019-12-20T15:18:13.000Z\“ is malformed at \“-12-20T15:18:13.000Z\“解决方案

参考:https://stackoverflow.com/questions/59517076/logstash-transfer-data-to-elasticsearch-parsing-date-error

Badger的回答:

The jdbc input will automatically change date columns to LogStash::Timestamp type, but your index template expects them to be text. Remove the "format" from the date fields in your index template.

翻译过来就是:jdbc输入将自动将日期列更改为LogStash::Timestamp类型,但索引模板要求它们是文本。从索引模板中的日期字段中删除“格式”。

意思就是说我们在设置索引的时候,"createTime":{"type":"date","format":"yyyy-MM-dd HH:mm:ss"},提前设置好了format,但是logstash只提供numberc和timestamp供选择,所以数据库里边datetime类型或者date类型的数据同步通过logstash无法转换成format的格式,所以报此错误

相关文章
|
小程序 API 开发者
【异常解决】“errcode“:47003,“errmsg“:“argument invalid! data.date4.value invalid rid:xxxxxx
【异常解决】“errcode“:47003,“errmsg“:“argument invalid! data.date4.value invalid rid:xxxxxx
822 0
【异常解决】“errcode“:47003,“errmsg“:“argument invalid! data.date4.value invalid rid:xxxxxx
|
9月前
|
数据库
Mongo的Invalid BSON field name $gte
Mongo的Invalid BSON field name $gte
60 2
tp5时间戳字段报错Invalid datetime format: 1292 Incorrect datetime value
tp5时间戳字段报错Invalid datetime format: 1292 Incorrect datetime value
484 0
|
9月前
|
数据库
Greenplum【异常 03】COPY命令报错 > ERROR: invalid input syntax for type double precision: ““(问题分析及解决方案)数据去重
Greenplum【异常 03】COPY命令报错 > ERROR: invalid input syntax for type double precision: ““(问题分析及解决方案)数据去重
264 0
|
Linux
Specified sample format -1 is invalid or not supported
Specified sample format -1 is invalid or not supported
257 0
Specified sample format -1 is invalid or not supported
Application provided invalid, non monotonically increasing dts to muxer in stream
Application provided invalid, non monotonically increasing dts to muxer in stream
658 0
Application provided invalid, non monotonically increasing dts to muxer in stream
工银e生活开发脱坑日志(7)Missing argument 6 for IcbcSignature::verify()
工银e生活开发脱坑日志(7)Missing argument 6 for IcbcSignature::verify()
89 0
error • The parameter ‘name‘ can‘t have a value of ‘null‘ because of its type错误
error • The parameter ‘name‘ can‘t have a value of ‘null‘ because of its type错误
|
Ubuntu 开发工具 芯片
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
213 0
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
Sqoop报警告hcatalog does not exist!...accumulo does not exist!解决方案
Sqoop报警告hcatalog does not exist!...accumulo does not exist!解决方案