mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
- The plain codec splits by line, and filewatch emits blobs without
newlines right now, so tack on a newline until filewatch gets refactored to emit blobs instead of lines.
This commit is contained in:
parent
2a19fb9a84
commit
d39e64f60b
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class LogStash::Inputs::File < LogStash::Inputs::Base
|
|||
@tail.subscribe do |path, line|
|
||||
source = "file://#{hostname}/#{path.gsub("\\","/")}"
|
||||
@logger.debug? && @logger.debug("Received line", :path => path, :line => line)
|
||||
@codec.decode(line) do |event|
|
||||
@codec.decode(line + "\n") do |event|
|
||||
event["source"] = source
|
||||
queue << event
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue