Calling elasticseach output intermittently

I have a file input and push to our elasticsearch . Like to reduce load on elasticserach so logstash should push file's content after a regular time (e.g 1 min - 5 min) by configuration But filecan move/delete so like to make sure that before file not there it should upload. but process which move file should not delay and should work smoothly. both logstash and moving process own by different team. Using logstash 2.4