How to add a field?

How to add a field in Logstash config file to know from which node I am receiving a log file?

Thanks!

This is normally added automatically. What kinds of inputs do you have?