fluent-bit overall setup

warning / lessons learnedwarning / lessons learned

beware of indentation (needs to be consistent across the file)

installinstall

see fluentbit-install

setupsetup

cd /etc/fluent-bit/
mv -i fluent-bit.conf fluent-bit.conf.dist
grep -vE '^[[:space:]]*(#|$)' fluent-bit.conf.dist > fluent-bit.conf.clean
grep -vE '^[[:space:]]*(#|$)' fluent-bit.conf.dist > fluent-bit.conf
vi fluent-bit.conf

for some full-blown host (not k8s)

[SERVICE]
    parsers_file parsers.conf
    log_file /var/log/fluent-bit.log

and for non-systemd systems

    daemon on

as for k8s/argocd

[SERVICE]
    parsers_file parsers.conf
    http_server on
    health_check on

and see sample configs ==> flb-*

ready to goready to go

tail -F /var/log/fluent-bit*log

debian

systemctl restart fluent-bit
journalctl -xeu fluent-bit

systemctl status fluent-bit
systemctl enable fluent-bit

slackware

enable

cd /etc/rc.d/
vi rc.local
# self-verbose
fluent-bit --daemon -c /etc/fluent-bit/fluent-bit.conf

status

pgrep -a fluent-bit

resourcesresources

https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file

https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/variables

alternatives

https://www.cncf.io/blog/2022/02/10/logstash-fluentd-fluent-bit-or-vector-how-to-choose-the-right-open-source-log-collector/

FW https://medium.com/ibm-cloud/log-collectors-performance-benchmarking-8c5218a08fea


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT