You've put this code under different licensing terms than logstash, I don't know if I'm comfortable merging this section, not being a lawyer.