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