Add custom field 'type' in logstash logs.
This commit is contained in:
parent
d0a4cfdcf5
commit
8758075456
1 changed files with 5 additions and 0 deletions
5
config/initializers/logstasher.rb
Normal file
5
config/initializers/logstasher.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
if LogStasher.enabled
|
||||
LogStasher.add_custom_fields do |fields|
|
||||
fields[:type] = "tps"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue