How to get client ip address

I had configured filebeat on client machines and logstash on central server. I want to log client ip as a field, so that i can filter the logs based on thier host ips, filebeat is logging hostname, but i need to log host ip. So is there any way through which i can view the ip address from which filebeat pushing logs to logstash?.

You can try https://www.elastic.co/guide/en/logstash/current/plugins-filters-dns.html