With the following logstash config:
filter
{
if [client]
{
if [ip] in [client]
{}
}
}
Which is converted as:
if (((x = event["[client]"]; x.respond_to?(:include?) && x.include?(event["[ip]"])))) # if [ip] in [client]
When I enter the following input data to Logstash '{"client": ""}',it throws error (then stop the daemon which is not really cool in production...):
TypeError: can't convert nil into String
Hence my question, is it possible to check if the field is a string, or an object? (or a good way to validate/sanitize input data).