Fluentd in Action

- 1 min

Fluentd is an open source data collector for unified logging layer.

Fluentd Unified Logging Layer


Fluentd Highly Available


Install Fluentd from Source

Fetch Source Code

$ git clone https://github.com/fluent/fluentd.git
$ cd fluentd

Build and Install

Build the package with rake and install it with gem.

$ bundle install
Fetching gem metadata from https://rubygems.org/.........
...
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle exec rake build
fluentd xxx built to pkg/fluentd-xxx.gem.
$ gem install pkg/fluentd-xxx.gem

Run

$ fluentd --setup ./fluent
$ fluentd -c ./fluent/fluent.conf -vv &
$ echo '{"json":"message"}' | fluent-cat debug.test

Stop

$ pkill -f fluentd

Install fluentd-ui

fluentd-ui is a browser-based fluentd and td-agent manager that supports following operations.

Install fluentd-ui via gem command

$ gem install -V fluentd-ui
$ fluentd-ui start
Puma 2.9.2 starting...
* Min threads: 0, max threads: 16
* Environment: production
* Listening on tcp://0.0.0.0:9292

Then, open http://localhost:9292/ by your browser. The default account is username=“admin” and password=“changeme”

Change password

username: admin
password: fluentdui

Reference

comments powered by Disqus
rss github weibo twitter instagram pinterest facebook linkedin stackoverflow reddit quora mail