- add 'secure' setting to irc output (LOGSTASH-139)

This commit is contained in:
Jordan Sissel 2013-04-22 12:57:46 -07:00
parent 1f2d8421c3
commit 101efaec4a
2 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,9 @@
## inputs
- bugfix: lumberjack now respects field data again (lumberjack --field foo=bar)
## outputs
- feature: irc output now supports 'secure' setting to use ssl (LOGSTASH-139)
1.1.10 (April 16, 2013)
## general
- On linux, all threads will set their process names so you can identify

View file

@ -36,6 +36,9 @@ class LogStash::Outputs::Irc < LogStash::Outputs::Base
# Message format to send, event tokens are usable here
config :format, :validate => :string, :default => "%{@message}"
# Set this to true to enable SSL.
config :secure, :validate => :boolean, :default => false
public
def register
require "cinch"
@ -52,6 +55,7 @@ class LogStash::Outputs::Irc < LogStash::Outputs::Base
c.realname = @real
c.channels = @channels
c.password = @password.value rescue nil
c.ssl.use = @secure
end
Thread.new(@bot) do |bot|
bot.start