How to create a meta field with source IP Address

I have 6 servers which are sending the logs to elasticsearch, I would like to know which log is sent by a server based on the server IP.

Are you using Logstash to submit the logs to Elasticsearch?