Set _Id as update key in logstash elasticsearch
问题 Im having an index as below: { "_index": "mydata", "_type": "_doc", "_id": "PuhnbG0B1IIlyY9-ArdR", "_score": 1, "_source": { "age": 9, "@version": "1", "updated_on": "2019-01-01T00:00:00.000Z", "id": 4, "name": "Emma", "@timestamp": "2019-09-26T07:09:11.947Z" } So my logstash conf for updaing data is input { jdbc { jdbc_connection_string => "***" jdbc_driver_class => "***" jdbc_driver_library => "***" jdbc_user => *** statement => "SELECT * from agedata WHERE updated_on > :sql_last_value