Commands Cheat Sheet

Evaluating engineering tools? Get the comparison in Google Sheets

(Perfect for making buy/build decisions or internal reviews.)

Most-used commands
Your email is safe thing.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Installation

Debian/Ubuntu
sudo apt-get update && sudo apt-get install -y fluent-bit

CentOS/RHEL
sudo yum install -y fluent-bit

Docker
docker pull fluent/fluent-bit

Binary
wget https://fluentbit.io/releases/latest/fluent-bit.tar.gz && tar -xzvf fluent-bit.tar.gz

Service Management

Start service
sudo systemctl start fluent-bit

Stop service
sudo systemctl stop fluent-bit

Restart service
sudo systemctl restart fluent-bit

Check status
sudo systemctl status fluent-bit

Enable at boot
sudo systemctl enable fluent-bit

Configuration

Main config file
/etc/fluent-bit/fluent-bit.conf

Parsers config
/etc/fluent-bit/parsers.conf

Plugins config
/etc/fluent-bit/plugins.conf

Test configuration
fluent-bit -c /etc/fluent-bit/fluent-bit.conf -d

Runtime Commands

Start with config
fluent-bit -c fluent-bit.conf

Run in foreground
fluent-bit -v

Run with specific input
fluent-bit -i cpu

Run with specific output
fluent-bit -o stdout

Input and output
fluent-bit -i cpu -o stdout

Flush interval
fluent-bit -f 5

Metrics & Monitoring

Enable HTTP server
fluent-bit -H

Set HTTP port
fluent-bit -H -P 9999

Get metrics
curl http://localhost:2020/api/v1/metrics

Get uptime
curl http://localhost:2020/api/v1/uptime

Troubleshooting

Debug mode
fluent-bit -vv

Trace mode
fluent-bit -vvv

Check plugin
fluent-bit -i dummy -o stdout -p

Dump internal plugins
fluent-bit -l

View parsed logs
fluent-bit -i tail -p path=/var/log/syslog -o stdout -p format=json_lines

Docker Commands

Run container
docker run -p 24224:24224 fluent/fluent-bit

Run with custom config
docker run -p 24224:24224 -v /path/to/config:/fluent-bit/etc fluent/fluent-bit

Healthcheck
docker exec -it [container_id] curl http://localhost:2020/api/v1/health