mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
- set default port number
- use channel as a string
This commit is contained in:
parent
0fd9c45e1b
commit
ad9b267d4a
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base
|
|||
config :host, :validate => :string, :required => true
|
||||
|
||||
# Port for the IRC Server
|
||||
config :port, :validate => :number, :required => true
|
||||
config :port, :validate => :number, :default => 6667
|
||||
|
||||
# Set this to true to enable SSL.
|
||||
config :secure, :validate => :boolean, :default => false
|
||||
|
@ -76,7 +76,7 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base
|
|||
msg = @irc_queue.pop
|
||||
if msg.user
|
||||
@codec.decode(msg.message) do |event|
|
||||
event["channel"] = msg.channel
|
||||
event["channel"] = msg.channel.to_s
|
||||
event["nick"] = msg.user.nick
|
||||
event["server"] = "#{@host}:#{@port}"
|
||||
output_queue << event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue