Logstash file output

Hi all

My Logstash file generates a output file every day .
It will modified for every few minutes.
But when I check the last modified date of file it is updating once the file is created and when new file is created.

Could anyone help us in resolving this.

I need last modified of file updated when ever the file is updated.

What platform and file system are you using?