mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Merge branch 'master' into issue/17
This commit is contained in:
commit
96eb87d56f
5 changed files with 19 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
.*.swp
|
||||
*.gem
|
||||
local
|
||||
|
||||
test/setup/elasticsearch/elasticsearch-*
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright 2009-2010 Jordan Sissel, Pete Fritchman, and contributors.
|
||||
Copyright 2009-2011 Jordan Sissel, Pete Fritchman, and contributors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -38,7 +38,6 @@ class LogStash::Inputs::Amqp < LogStash::Inputs::Base
|
|||
:vhost => (@vhost or "/"),
|
||||
:host => @url.host,
|
||||
:port => (@url.port or 5672),
|
||||
:logging => true
|
||||
}
|
||||
amqpsettings[:user] = @url.user if @url.user
|
||||
amqpsettings[:pass] = @url.password if @url.password
|
||||
|
|
|
@ -36,7 +36,6 @@ class LogStash::Outputs::Amqp < LogStash::Outputs::Base
|
|||
:vhost => (@vhost or "/"),
|
||||
:host => @url.host,
|
||||
:port => (@url.port or 5672),
|
||||
:logging => true
|
||||
}
|
||||
amqpsettings[:user] = @url.user if @url.user
|
||||
amqpsettings[:pass] = @url.password if @url.password
|
||||
|
|
|
@ -6,12 +6,26 @@ class LogStash::Outputs::Stdout < LogStash::Outputs::Base
|
|||
config :debug => :boolean
|
||||
|
||||
public
|
||||
def register
|
||||
# nothing to do
|
||||
def initialize(*args)
|
||||
super
|
||||
|
||||
@opts = {}
|
||||
if @url.path != "/"
|
||||
@opts = @url.path[1..-1].split(",")
|
||||
end
|
||||
end # def register
|
||||
|
||||
public
|
||||
def receive(event)
|
||||
puts event
|
||||
if debug?
|
||||
ap event
|
||||
else
|
||||
puts event
|
||||
end
|
||||
end # def event
|
||||
|
||||
public
|
||||
def debug?
|
||||
return @opts.member?("debug")
|
||||
end
|
||||
end # class LogStash::Outputs::Stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue