Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


FluentBit Study

04 Jun 2022 »

Build Centos

yum -y install cmake make flex bison
yum -y install gcc gcc-c++ openssl-devel
wget https://github.com/fluent/fluent-bit/archive/refs/tags/v1.9.8.tar.gz
tar xzvf v1.9.8.tar.gz
cd fluent-bit-1.9.8/
cd build
cmake ../ -DFLB_CONFIG_YAML=Off
make
make DESTDIR=/opt/fluent-bit install
echo 'export PATH="/opt/fluent-bit/usr/local/bin:$PATH"' >> ~/.bashrc
. ~/.bashrc

Build

https://docs.fluentbit.io/manual/installation/sources/build-and-install

docker run -it --rm python:3.7.4 bash

apt update
apt install bison flex cmake makefile
wget https://github.com/fluent/fluent-bit/archive/refs/tags/v1.9.4.tar.gz
tar xzvf v1.9.4.tar.gz
cd fluent-bit-1.9.4/
cd build
cmake ../
make
make DESTDIR=/opt/td-agent install

Stream to fetch metric data from nginx logs

https://fluentbit.io/blog/2020/12/02/supercharge-your-logging-pipeline-with-fluent-bit-stream-processing/

Deep Dive Fluent Bit: Logging & Stream Processing - Eduardo Silva, ARM Treasure Data

https://youtu.be/xKbVBUMnJH0