adding logstash 1.2.2 code