How logstash comes out after processing log files?

How logstash comes back to command prompt after processing all the log files( Cntrl + C )? I have to process log once its not going to increase once processed. How would i know that the processing of file is completed and automatically close the command prompt.?

If you are using a file input it will just expect that you want to keep watching the file for new entries.

Look at using stdin with cat on Linux or type on Windows.