Logstash not detecting newly added records in elastic

I have a sql db and I have logstash running on it for every 1min with docupsert true , everything is fine . But when i add a record into elastic using my backend code , its being pushed into the elastic successfully but after one minute logstash is again pushing the record into elastic eventhough fileid is defined as the key parameter for update in logstash config file