Going to: vim /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.0.2-java/lib/logstash/inputs/beats/message_listener.rb
And deleting:
begin
hash.get("@metadata").put("ip_address", ctx.channel().remoteAddress().getAddress().getHostAddress())
rescue #should never happen, but don't allow an error here to stop beats input
input.logger.warn("Could not retrieve remote IP address for beats input.")
end
Fixes the issue.