mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- add runner
This commit is contained in:
parent
c48fe7991f
commit
db46c2dd50
1 changed files with 14 additions and 0 deletions
14
lib/logstash/runner.rb
Normal file
14
lib/logstash/runner.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
command = ARGV.shift
|
||||
|
||||
case command
|
||||
when "agent"
|
||||
require "logstash/agent"
|
||||
agent = LogStash::Agent.new
|
||||
agent.argv = ARGV
|
||||
agent.run
|
||||
when "web"
|
||||
puts "not supported yet"
|
||||
when "test"
|
||||
puts "not supported yet"
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue