Can Logstash read multiple text files , store config data available in first lines and add it to all other lines

There is an example of doing something similar to that here.