项目作者: JILeXanDR

项目描述 :
Kibana log viewer for Golang application
高级语言: Go
项目地址: git://github.com/JILeXanDR/golang-kibana-logstash-example.git


Kibana log viewer for Golang application (example)

How to see in work?

1. Run docker container

  1. docker-compose up

2. Run golang application which writes a few log records in JSON format

  1. go run .

output:

  1. {"level":"debug","module":"world","msg":"Hello!!!","time":"2019-10-01T17:09:19+03:00"}
  2. {"level":"info","module":"updater","msg":"updating info...","time":"2019-10-01T17:09:19+03:00"}
  3. {"level":"error","module":"user","msg":"failed to fetch user info","time":"2019-10-01T17:09:19+03:00"}

3. see logs on http://localhost:5601