Open kaybinwong opened 5 years ago
same issue, following
Try rename Timestamp_Key @timestamp,please do not use @timestamp when output to kafka
Finally I found out that the @timestamp value 1552268032.077178 cannot be parsed by logstash, It's support UNIX,UNIX_MS,etc... but this type. If you have a better solution,please let me know. I solve this problem by not send a filed @timestamp to kafka.
If you send log direct to kafka,then get log from kafka use logstash,It's work fine.if you try to resolve the log then logstash read msgs from kafka,but @timestamp is an object, If try to resolve ,It's resolve as string,then there is something wrong
@kaybinwong @sherwinwangs I have exactly the same problem,Fluent I currently use version 1.3.7,Found the answer in the official stability.
Key descrption default Timestamp_Format 'iso8601' or 'double' double
https://docs.fluentbit.io/manual/v/1.3/output/kafka
Configure correctly: [OUTPUT] Name kafka Match kube.* Brokers 172.18.96.29:9092 Topics my-topic Timestamp_Format iso8601 rdkafka.compression.type lz4
the @timestamp field is still numberic, and the logstash got an error.