Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devexps/go-efk
Golang microservice framework (Go-Micro) easily connects to the EFK log system
https://github.com/devexps/go-efk
efk-elastic-search--fluentd--kibana framework go-micro golang logging microservice system
Last synced: about 1 month ago
JSON representation
Golang microservice framework (Go-Micro) easily connects to the EFK log system
- Host: GitHub
- URL: https://github.com/devexps/go-efk
- Owner: devexps
- License: mit
- Created: 2023-09-05T12:54:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-13T11:23:50.000Z (about 1 year ago)
- Last Synced: 2024-06-21T16:58:26.176Z (5 months ago)
- Topics: efk-elastic-search--fluentd--kibana, framework, go-micro, golang, logging, microservice, system
- Language: Go
- Homepage:
- Size: 1.06 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
docker-compose up -d
```## Kibana query log
Kibana's access port is 5601, so we can access: [http://127.0.0.1:5601/](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](screenshot-001.png)
We click `Discover` -> `Create a data view`, and then we will see the following interface:
![demo2](screenshot-002.png)
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](screenshot-003.png)
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](screenshot-004.png)
If you need to build a more complex query, you can build a query statement in the top search bar.