This is an example integrating a Golang application to Elastic stack.
To get things started, you can use docker-compose to run everything:
$ docker-compose up
Every service on ELK stack (Elasticsearch, Logstash, Kibana and Beats) needs a container, so on docker-compose.yml
you can check every config. In this example, we're logging into log/go.log
file and reading it with Logstash.
For Golang, we're using zap, the Uber's logging lib.