logger
logger copied to clipboard
Kubernetes logs to MongoDB
TheYkk K8S Logger
This tool runs a pod at every node in K8s via deamonset. The pod connects node's /var/log/containers folder and adds to mongodb by collecting logs
Supports 25 Parsers
Average log size ~ 700 byte
Installation
Create mongodb url secret
kubectl create secret generic theykk-logger --from-literal=MONGO_URI=<Mongodb connection url>
Apply rbac and deamonset
kubectl apply -f https://raw.githubusercontent.com/TheYkk/logger/master/rbac.yaml
kubectl apply -f https://raw.githubusercontent.com/TheYkk/logger/master/deamonset.yaml
Buil docker image
DOCKER_BUILDKIT=1 docker build -t theykk/logger .
and push the docker hub
docker push theykk/logger
Author
👤 TheYkk <Kaan Karakaya [email protected]>
Show your support
Give a ⭐️ if this project helped you!