Skip to content

JILeXanDR/golang-kibana-logstash-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kibana log viewer for Golang application (example)

How to see in work?

1. Run docker container

docker-compose up

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

go run .

output:

{"level":"debug","module":"world","msg":"Hello!!!","time":"2019-10-01T17:09:19+03:00"}
{"level":"info","module":"updater","msg":"updating info...","time":"2019-10-01T17:09:19+03:00"}
{"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

Releases

No releases published

Packages

No packages published

Languages