modified stdin and stdout as per examples @logstash