convert to logstash 1.5.x external plugin