Logash ip address in ELastic search

i have 6 logstash instances processing events to elastic search .Is there a way that i can get the Logstash ip from which the event is processed to elastic search as a field

You could set the IP address as an environment variable for the logstash process then reference it from mutate+add_field.