mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- add 'secure' setting to irc output (LOGSTASH-139)
This commit is contained in:
parent
1f2d8421c3
commit
101efaec4a
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue