https://github.com/pete911/fluent-bit-test
project to manually test fluentbit configurations and go output plugin
https://github.com/pete911/fluent-bit-test
fluent-bit fluentbit
Last synced: about 1 year ago
JSON representation
project to manually test fluentbit configurations and go output plugin
- Host: GitHub
- URL: https://github.com/pete911/fluent-bit-test
- Owner: pete911
- Created: 2021-10-07T19:51:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-31T19:21:52.000Z (over 4 years ago)
- Last Synced: 2025-02-13T15:24:08.162Z (over 1 year ago)
- Topics: fluent-bit, fluentbit
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fluent-bit-test
Project to manually test fluent-bit configurations. Includes an example of fluent-bit output plugin written in go.
## requirements
- [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
- [helm](https://helm.sh/docs/helm/helm_install/) at least 3.7.0 version
- [go](https://golang.org)
## run
- modify [values.yml](values.yml) if needed and run `make run` start kind cluster
- cluster runs test [log-app](log-app) exposed on `30500` port, which can be used to generate logs by POSTing data to it:
- `curl -v -X POST -d 'test log message' http://localhost:30500`
- logs are sent to `/tmp/fluent-bit-test/` local directory
- `tail -f /tmp/fluent-bit-test/kube.var.log.containers.log-app-*.log | jq .`
- project is also configured with [out-plugin](out-plugin) written in go. To view the output from this plugin, run:
- `tail -f /tmp/fluent-bit-test/out`
- clean up after test `make cleanup`
## debug kind cluster
- `docker ps` - list kind cluster nodes running as docker images
- `docker exec -it fluent-bit-test-control-plane bash` - "ssh" onto control plane node
- once on the node, we can:
- `ps auxf` check processes
- `crictl images` check images already present on the node