Perhaps the methods should be public so we can shut it down from the application main() context. Also consider moving these functions to another file. logstash_log.go or something.