pete911 / fluent-bit-test

project to manually test fluentbit configurations and go output plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fluent-bit-test

Project to manually test fluent-bit configurations. Includes an example of fluent-bit output plugin written in go.

requirements

run

  • modify values.yml if needed and run make run start kind cluster
  • cluster runs test 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 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

About

project to manually test fluentbit configurations and go output plugin


Languages

Language:Go 69.8%Language:Shell 16.3%Language:Dockerfile 13.0%Language:Makefile 0.9%