truongpx396 / golang-elk-example

This is an example integrating a Golang code to ELK stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang and ELK Stack Example

This is an example integrating a Golang application to Elastic stack.

Quick Start

To get things started, you can use docker-compose to run everything:

$ docker-compose up

Services

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.

About

This is an example integrating a Golang code to ELK stack

License:MIT License


Languages

Language:Mustache 82.5%Language:Shell 14.1%Language:Go 2.0%Language:Dockerfile 1.3%