mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- Add base for unified invocation binary
This commit is contained in:
parent
7a6808418f
commit
d9c8381754
1 changed files with 17 additions and 0 deletions
17
bin/logstash
Normal file
17
bin/logstash
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require "rubygems"
|
||||
require "eventmachine"
|
||||
require "lib/components/agent"
|
||||
|
||||
config = {
|
||||
"logs" => [
|
||||
"/var/log/messages",
|
||||
],
|
||||
}
|
||||
|
||||
agent = LogStash::Components::Agent.new(config)
|
||||
|
||||
EventMachine.run do
|
||||
agent.register
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue