mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- add note about why we're making a hash
This commit is contained in:
parent
6ab2242fa1
commit
0726603b19
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
|
|||
|
||||
public
|
||||
def receive(event)
|
||||
# We have to make our own hash here because GELF expects a hash
|
||||
# with a specific format.
|
||||
m = Hash.new
|
||||
m["short_message"] = (event.fields["message"] or event.message)
|
||||
m["full_message"] = (event.message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue