refactored the logstash-forwarder.config template code