mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
[oldlogstashjson] append newline to encoded json
This commit is contained in:
parent
d07f4078cd
commit
f5330f2fba
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ class LogStash::Codecs::OldLogStashJSON < LogStash::Codecs::Base
|
|||
h["@fields"][field] = val
|
||||
end
|
||||
|
||||
@on_event.call(h.to_json)
|
||||
# Tack on a \n because JSON outputs 1.1.x had them.
|
||||
@on_event.call(h.to_json + "\n")
|
||||
end # def encode
|
||||
|
||||
end # class LogStash::Codecs::OldLogStashJSON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue