How to know when Logstash finished parsing?

Hi,

I am currently working in a program where I need to know whether log stash completely loaded the data or not. For this, I am using an idea in which I want to know the idea of the index before and after some minutes .So kindly let me know how can I achieve this programmatically. Also let me know if you have any better optimized idea of doing the above work.

Thanks and Best Regards,
Rajeev

Assuming you're using a file input see below.