https://github.com/ozgen/kubernetes-efk-stack
EFK Stack on Kubernetes
https://github.com/ozgen/kubernetes-efk-stack
efk efk-elastic-search--fluentd--kibana efk-k8s elasticsearch fluentd kibana kubernetes kustomize
Last synced: about 1 month ago
JSON representation
EFK Stack on Kubernetes
- Host: GitHub
- URL: https://github.com/ozgen/kubernetes-efk-stack
- Owner: ozgen
- Created: 2022-08-02T11:09:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T11:50:48.000Z (almost 4 years ago)
- Last Synced: 2025-01-04T16:19:42.255Z (over 1 year ago)
- Topics: efk, efk-elastic-search--fluentd--kibana, efk-k8s, elasticsearch, fluentd, kibana, kubernetes, kustomize
- Homepage:
- Size: 925 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elasticsearch-fluentd-kibana
### EFK Stack on Kubernetes
This repository is an example of how to configure elasticsearch, kibana and fluentd for logging in kubernetes. The repository is inspired from that [blog].
Security is disabled in elasticsearch and kibana. For this scenario, `elasticsearch.yml` file is overwritten by the `configmap.yaml`.
Also in order to solve parser error in fluentd `FLUENT_CONTAINER_TAIL_PARSER_TYPE` is added to environment variable in the `fluentd/deamonset.yaml`.
## How to Setup?
1 - Create namespace logging : `kubectl create ns logging`
2 - In the project directory:
` kustomize build k8s | kubectl apply -f -
`
Check & port-forwarding the elasticsearch deployed correctly or not ?
Check & port-forwarding the kibana deployed correctly or not ?
## To see the results :
when check all pods work fine, then you can add index pattern in kibana as depicted on this [blog].
Then the results should be :
In kibana client:

## Resources
https://devopscube.com/setup-efk-stack-on-kubernetes/
https://www.deepnetwork.com/blog//2020/03/13/password-protected-efk-stack-on-k8s.html
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-elasticsearch-fluentd-and-kibana-efk-logging-stack-on-kubernetes
[blog]: https://devopscube.com/setup-efk-stack-on-kubernetes/