mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
exec input
This commit is contained in:
parent
a9f1790e7f
commit
4de29e2b32
1 changed files with 2 additions and 2 deletions
|
@ -21,14 +21,14 @@ class LogStash::Inputs::Exec < LogStash::Inputs::Base
|
|||
|
||||
public
|
||||
def register
|
||||
#require "eventmffachine"
|
||||
@logger.info(["Registering Exec Input", {:type => @type, :exec => @exec, :period => @period}])
|
||||
end # def register
|
||||
|
||||
public
|
||||
def run(queue)
|
||||
while(1)
|
||||
out = IO.popen(@exec)
|
||||
e = to_event(out.readlines, @exec)
|
||||
e = to_event(out.read, @exec)
|
||||
queue << e
|
||||
sleep @period
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue