update logstash code example