Adding logstash IP address field when processing filter

Thanks Badger!

The correct code was next though:

     ruby {
        init => "require 'socket'"
        code => "event.set('logstash.hostname', Socket.gethostname)"
      }

Regards!

1 Like