Ignore plugin error

I am using geoip plugin to geo code IP, but sometimes, event are coming with a wrong IP then geoip plugin throws error then nothing is output :confused:


Is it possible to silent error for specified plugins?


You could wrap the geoip filter in a conditional block and skip it unless the field looks like an IP address.

Yes, it was I finally done:

   init => "require 'resolv'"
   code => "event['valid_ip'] = !!(event['ip'] =~ Resolv::IPv4::Regex)"