https://github.com/theykk/logger
Kubernetes logs to MongoDB
https://github.com/theykk/logger
docker hacktoberfest kubernetes logging mongodb nodejs
Last synced: about 1 year ago
JSON representation
Kubernetes logs to MongoDB
- Host: GitHub
- URL: https://github.com/theykk/logger
- Owner: TheYkk
- License: apache-2.0
- Created: 2020-09-25T19:41:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-11T13:35:37.000Z (over 4 years ago)
- Last Synced: 2024-05-01T18:37:25.026Z (about 2 years ago)
- Topics: docker, hacktoberfest, kubernetes, logging, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 589 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://twitter.com/YkkCode "Twitter: YkkCode")
[](https://microbadger.com/images/theykk/logger )
[](https://microbadger.com/images/theykk/logger )
[](https://hub.docker.com/r/theykk/logger)
# 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
```sh
kubectl create secret generic theykk-logger --from-literal=MONGO_URI=
```
Apply rbac and deamonset
```sh
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
```sh
DOCKER_BUILDKIT=1 docker build -t theykk/logger .
```
and push the docker hub
```sh
docker push theykk/logger
```
## Author
👤 **TheYkk <Kaan Karakaya yusufkaan142@gmail.com>**
* Twitter: [@YkkCode](https://twitter.com/YkkCode)
* Github: [@TheYkk](https://github.com/TheYkk)
## Show your support
Give a ⭐️ if this project helped you!
## License
[APACHE](https://choosealicense.com/licenses/apache-2.0/)