lib/logstash/inputs/perfmon.rb in logstash-input-perfmon-0.1.6 vs lib/logstash/inputs/perfmon.rb in logstash-input-perfmon-1.0.0
- old
+ new
@@ -74,10 +74,10 @@
data = @typeperf.get_next
@codec.decode(data) do |event|
decorate(event)
- event['host'] = @host
+ event.set('host', @host)
queue << event
@logger.debug("Added event to queue: #{event}")
end
end
\ No newline at end of file