fix bug in newline handling, add new server test
remove legacy logstash