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 host system
[SERVICE]
parsers_file parsers.conf
log_file /var/log/fluent-bit.log
for slackware
daemon on
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
enable
systemctl list-unit-files | grep fluent # not yet systemctl enable fluent-bit.service
operate
systemctl restart fluent-bit systemctl status fluent-bit journalctl -xeu 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