Logstash flat files integartion

How logstash collects flat files like SMB?