How to exclude empty (0 KB) files in logstash

Frequently logstash crashed with the following error
{:timestamp=>"2016-04-28T12:49:47.540000+0530", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["filepath"], start_position=>"beginning", type=>"type", delimiter=>"\u0019", close_older=>300, max_open_files=>5000, discover_interval=>5, ignore_older=>172800, sincedb_path=>"/apps/sincedb/QA_TRANS_TIME_TAKEN/tsaction.log", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, sincedb_write_interval=>15>\n Error: No such file or directory - /apps/qa_logdata/mlogserverj/logs_primary/__302007___611926289499029.log", :level=>:error}

My application generating file every 2 seconds if file size is 0 kb deleting those files.
Its blocker for me .Please suggest How to exclude 0KB files in logstash.
Thanks in advance.