Updating data in CSV logstash is pushing the entire CSV file again with updated data which duplicates my records in index. But I just want to sync the data

Hi Badger,

Different issue that i came across is i am reading a file from windows folder

file {
path => "C:\Users\Public\Documents\Elastic\logstash-6.3.0\csv_data\attrition_dump*.csv"
}

My CSV file will keep on changing so for that i used * but, data of that csv is not getting pushed but when i give full name everything works fine.

Please, suggest the appropriate pattern for reading the file from windows directory