devexps / go-efk

Golang microservice framework (Go-Micro) easily connects to the EFK log system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go-Micro connects to the EFK log system

Deploy EFK

Use the following command to create a Docker container and run it in the background:

docker-compose up -d

Kibana query log

Kibana's access port is 5601, so we can access: http://127.0.0.1:5601/

When we first entered Kibana, it was blank and nothing. Then, we need to add a Data View, which is equivalent to creating a log query view.

demo1

We click Discover -> Create a data view, and then we will see the following interface:

demo2

We fill in go-micro-fluentd in the Index pattern text box. With the Timestamp field we can find ts from the drop-down box and select it. Then, we can click Save data view to Kibana to create the view.

We will see a view of the log query:

demo3

In this view, what we see is only the most original log information. We can check msg or other fields that need attention on the left, and Kibana will filter out the information we care about:

demo4

If you need to build a more complex query, you can build a query statement in the top search bar.

About

Golang microservice framework (Go-Micro) easily connects to the EFK log system

License:MIT License


Languages

Language:Go 85.0%Language:Makefile 12.3%Language:Dockerfile 2.7%