https://github.com/averagemarcus/kube-event-logger
⎈ Capture Kubernetes events and log them out to stdout so they can be picked up by a central log collector.
https://github.com/averagemarcus/kube-event-logger
Last synced: over 1 year ago
JSON representation
⎈ Capture Kubernetes events and log them out to stdout so they can be picked up by a central log collector.
- Host: GitHub
- URL: https://github.com/averagemarcus/kube-event-logger
- Owner: AverageMarcus
- Created: 2019-02-07T19:12:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T11:32:11.000Z (over 7 years ago)
- Last Synced: 2025-02-12T11:24:29.635Z (over 1 year ago)
- Language: Go
- Size: 4.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kube-event-logger
Capture Kubernetes events and log them out to stdout so they can be picked up by a central log collector.
## Usage
### Out-of-cluster
```
go build main.go -o kube-event-logger
KUBECONFIG=~/.kube/config ./kube-event-logger
```
### In-cluster
Apply the provided kubernetes manifest:
```
kubectl apply -f ./kubernetes.yaml
```
## Config
Take a look at [.kube-event-logger.yaml](.kube-event-logger.yaml) for the possible configuration. If no configuration is found, or configuration fails to load the application will only report on pods across all namespaces by default.