mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- fix bugs exposed by the inputs/file tests
This commit is contained in:
parent
0e34d43a66
commit
734bc3f5d8
1 changed files with 4 additions and 4 deletions
|
@ -41,9 +41,9 @@ class LogStash::File::Manager
|
|||
|
||||
# TODO(sissel): inputs/base should do this.
|
||||
config["tag"] ||= []
|
||||
if !config["tag"].member?(config["type"])
|
||||
config["tag"] << config["type"]
|
||||
end
|
||||
#if !config["tag"].member?(config["type"])
|
||||
#config["tag"] << config["type"]
|
||||
#end
|
||||
|
||||
# TODO(sissel): Need to support file rotation, globs, etc
|
||||
begin
|
||||
|
@ -70,7 +70,7 @@ class LogStash::File::Manager
|
|||
"@type" => config["type"],
|
||||
"@tags" => config["tag"].dup,
|
||||
})
|
||||
e.source = "file://#{@hostname}/#{path}"
|
||||
e.source = "file://#{@hostname}#{path}"
|
||||
@logger.debug(["New event from file input", path, e])
|
||||
@output_queue << e
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue