Commands Cheat Sheet

Try DrDroid: AI Agent for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thankyou for your submission

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

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

Installation

gem install fluentd
Install Fluentd using Ruby Gems

td-agent-gem install
Install plugins in td-agent (enterprise version)

fluent-gem install
Install plugins in OSS version

Configuration

fluentd -c /path/to/config.conf
Start Fluentd with a specific configuration file

fluentd --dry-run -c /path/to/config.conf
Check configuration file syntax without starting

fluentd -s /path/to/config.conf
Show configuration file after parsing

Service Management

systemctl start td-agent
Start the td-agent service

systemctl stop td-agent
Stop the td-agent service

systemctl restart td-agent
Restart the td-agent service

systemctl status td-agent
Check the status of td-agent service

Logging and Debugging

tail -f /var/log/td-agent/td-agent.log
View live td-agent logs

fluentd -v
Display Fluentd version

fluentd -vv
Display verbose debug information

Plugin Management

fluent-gem list
List all installed Fluentd plugins

fluent-gem install fluent-plugin-
Install a specific plugin

fluent-gem uninstall fluent-plugin-
Remove a specific plugin

Testing

curl -X POST -d 'json={"message":"test"}' http://localhost:8888/
Send a test message to Fluentd HTTP input

echo '{"message":"test"}' | fluent-cat
Send a test message using fluent-cat command