Replace the data of an existing index in Elastic using Logstash

is it possible to overwrite the data of an existed index in elasticsearch using logstash when I re-process a json file?

yes, look for thing call action => update.

you have to have same document id for that.