lots of script fixes + added configurable logstash port
lots of script fixes + added configurable logstash port