require string instead of ipaddr (to allow for hosts)

This commit is contained in:
Pete Fritchman 2011-02-26 21:50:48 -08:00
parent 846a7d6d76
commit 22258e192d
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class LogStash::Inputs::Syslog < LogStash::Inputs::Base
config_name "syslog"
# TCP listen configuration
config :host, :validate => :ipaddr
config :host, :validate => :string
config :port, :validate => :number
public

View file

@ -7,7 +7,7 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
config_name "tcp"
config :host, :validate => :ipaddr
config :host, :validate => :string
config :port, :validate => :number, :required => true
config :data_timeout, :validate => :number