Skip to content

Just an example of how to ship logs using fluentbit

Notifications You must be signed in to change notification settings

KoSKuma/fluentbit-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluentbit-example

Build image and push to dockerhub

First: login if needed

docker login

Then: build docker and push

docker build -t koskuma/example-log-generator:latest -f docker/Dockerfile .
docker push koskuma/example-log-generator:latest

In case you want to try running

docker run --name example-log-generator koskuma/example-log-generator

Docker run test database

docker run --name influxdb \
    -p 8086:8086 \
    -v influxdb:/var/lib/influxdb \
    -d influxdb
docker run --name elasticsearch \
    -p 9200:9200 -p 9300:9300 \
    -e "discovery.type=single-node" \
    -d docker.elastic.co/elasticsearch/elasticsearch:7.8.0

Before deployemnt - update fluent-bit deployment configurations

You have to update the IP address of the Elasticsearch and InfluxDB containers in config files.

Update the IP 127.0.0.1 to your IP address in deployments/fluentbit-config.yml and deployments/fluentbit-deploy.yml

Deploy Example Log Generator

kubectl apply -f deployments/deployment.yml

Create Namespace

kubectl create namespace fluentbit-test

Create RBAC for the Fluent Bit

kubectl create -f deployments/fluentbit-rbac.yml

Create a ConfigMap

kubectl create -f deployments/fluentbit-config.yml

Deploy Fluentbit

kubectl create -f deployments/fluentbit-deploy.yml

About

Just an example of how to ship logs using fluentbit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published