Method: LogStash::Inputs::Elasticsearch::URIOrEmptyValidator#validate_value
- Defined in:
- lib/logstash/inputs/elasticsearch.rb
#validate_value(value, validator) ⇒ Array(true,Object), Array(false,String)
664 665 666 667 668 669 670 671 672 673 |
# File 'lib/logstash/inputs/elasticsearch.rb', line 664 def validate_value(value, validator) return super unless validator == :uri_or_empty value = deep_replace(value) value = hash_or_array(value) return true, value.first if value.size == 1 && value.first.empty? return super(value, :uri) end |