Add custom field 'type' in logstash logs.

This commit is contained in:
Guillaume Lazzara 2016-03-03 18:33:59 +01:00
parent d0a4cfdcf5
commit 8758075456

View file

@ -0,0 +1,5 @@
if LogStasher.enabled
LogStasher.add_custom_fields do |fields|
fields[:type] = "tps"
end
end