beware of indentation (needs to be consistent across the file)
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-*
tail -F /var/log/fluent-bit*log
systemctl restart fluent-bit
journalctl -xeu fluent-bit
systemctl status fluent-bit
systemctl enable fluent-bit
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
https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/variables
FW https://medium.com/ibm-cloud/log-collectors-performance-benchmarking-8c5218a08fea