mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- Fix eventmachine-tail usage to match 0.2.x api
This commit is contained in:
parent
4aea3bddb3
commit
ae21f3d7c0
1 changed files with 3 additions and 2 deletions
|
@ -123,10 +123,11 @@ module LogStash; module Programs;
|
|||
|
||||
private
|
||||
def setup_watches
|
||||
handler = EventMachine::FileGlobWatchTail.new(GrokReader, self)
|
||||
#handler = EventMachine::FileGlobWatchTail.new(GrokReader, self)
|
||||
@config.watched_paths.each do |path|
|
||||
$logger.warn("Watching #{path}")
|
||||
EventMachine::FileGlobWatch.new(path, handler)
|
||||
EventMachine::FileGlobWatchTail.new(path, GrokReader, interval=60,
|
||||
exclude=[], agent=self)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue