kafka-connect-elasticsearch icon indicating copy to clipboard operation
kafka-connect-elasticsearch copied to clipboard

Unable to see the timestamp value in given format in kibana as well as elastic search

Open bh1r123 opened this issue 4 years ago • 0 comments

Hi There,

With the below properties i am unable to save the timestamp with the below specified format (string).i.e,(2020-01-26 12:30:34.945) etc.. And in mapping the type will be long even if i am specifing as string. Anybody please help me how can i acheive the string date insertion in elastic search.

` name=testtimestamp connector.class=io.confluent.connect.elasticsearch.ElasticsearchSinkConnector

tasks.max=1 topics=testtimestamp connection.url=http://localhost:9200 type.name=_doc schema.ignore=true key.ignore=false transforms=convert_op_ts,create_ts transforms.create_ts.type=org.apache.kafka.connect.transforms.InsertField$Value transforms.create_ts.timestamp.field=current_ts transforms.convert_op_ts.type=org.apache.kafka.connect.transforms.TimestampConverter$Value transforms.convert_op_ts.target.type=string transforms.convert_op_ts.field=current_ts transforms.convert_op_ts.format=yyyy-MM-dd HH:mm:ss.SSSSSS `

bh1r123 avatar Jun 14 '20 12:06 bh1r123