How logstash parse log files internally?

but if the files are downloaded locally then how it will be efficient?

Why would it not be efficient? What do you suggest instead?