Skip to content

TheYkk/logger

Repository files navigation

dockeri.co

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

Parse

Supports 25 Parsers

Parse Average log size ~ 700 byte

Parse

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!

License

APACHE