Go to file
Takuro Ashie e75cc0d60d
Merge pull request #463 from error9098x/master
Fix: Update broken links for td-agent (EOL) and ChromeDriver in README
2025-04-21 10:38:39 +09:00
.github/workflows Migrate from Travis-CI to GitHub Actions 2021-04-15 12:53:04 +09:00
app Update CSS to follow updating startbootstrap-sb-admin 2019-03-14 11:36:52 +09:00
bin Run bin/setup instead of bundler 2018-05-21 15:27:45 +09:00
config Fix a broken indent 2020-03-04 22:07:50 +09:00
db Remove useless files 2015-01-14 11:14:42 +09:00
docs/screenshots Fix typo: in_file -> in_tail 2014-12-03 16:27:41 +09:00
lib Prepare to release v1.2.2 2018-12-06 11:40:02 +09:00
log rails new ./fluentd-ui -T -D 2014-05-08 15:53:16 +09:00
public Add logo for td-agent-ui 2014-12-10 16:53:14 +09:00
test Fix test failure by missing parameters 2021-04-14 18:04:43 +09:00
.browserslistrc Add .browserslistrc 2019-03-13 11:30:01 +09:00
.editorconfig Add .editorconfig 2018-05-16 16:42:02 +09:00
.eslintrc.js Treat some variables as global 2018-11-05 11:17:04 +09:00
.gitignore Add ignore pattern 2018-05-22 10:55:47 +09:00
babel.config.js Replace .babelrc and .postcssrc.yml 2019-03-13 11:29:04 +09:00
ChangeLog Add Link to ChangeLog.md from ChangeLog (old ChangeLog) 2015-04-15 16:24:52 +09:00
ChangeLog.md Prepare to release v1.2.2 2018-12-06 11:40:02 +09:00
config.ru Support relative URL 2018-08-08 17:43:45 +09:00
Dockerfile Dockerfile was added for fluentd-ui. 2020-01-31 14:56:26 +03:00
fluentd-ui.gemspec Update rubyzip requirement from ~> 1.1 to >= 1.1, < 3.0 2020-03-04 09:52:06 +00:00
Gemfile Use latest webmock 2021-04-15 11:50:16 +09:00
Gemfile.lock Bump nokogiri from 1.12.1 to 1.12.5 2021-09-27 20:22:58 +00:00
Gemfile.production Don't load Gemfile.plugins, it is no needed now 2014-05-29 14:15:05 +09:00
LICENSE Add license file (Apache v2.0) 2014-08-22 17:25:35 +09:00
package.json Bump lodash from 4.17.19 to 4.17.21 2021-08-03 08:20:28 +00:00
postcss.config.js Replace .babelrc and .postcssrc.yml 2019-03-13 11:29:04 +09:00
Rakefile Simplify 2018-07-25 18:29:57 +09:00
README.md fix: links updated README.md 2025-04-19 22:16:21 +00:00
yarn.lock Bump url-parse from 1.5.1 to 1.5.3 2021-08-13 09:15:10 +00:00

fluentd-ui

Build Status Gem Version Code Climate

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

  • Install, uninstall, and upgrade Fluentd plugins
  • start/stop/restart fluentd process
  • Configure Fluentd settings such as config file content, pid file path, etc
  • View Fluentd log with simple error viewer

Official documentation | Changelog

Requirements

  • ruby 2.2.2 or later (since v1.0.0)
  • fluentd v1.0.0 or later (also supports td-agent 3)
    • Currently, fluentd v1 and td-agent 3 support is in alpha state

And some additional packages (Debian / Ubuntu)

  • build-essential
  • libssl-dev
  • libxml2-dev
  • libxslt1-dev
  • ruby-dev

How to install and run

$ gem install fluentd-ui
$ fluentd-ui setup
$ fluentd-ui start --daemonize

Access http://localhost:9292 by web browser. The default account is username="admin" and password="changeme".

Run under sub path

Use RAILS_RELATIVE_URL_ROOT environment variable.

$ RAILS_RELATIVE_URL_ROOT=/prefix fluentd-ui start --daemonize

Access http://localhost:9292/prefix by web browser.

Development

Get the source

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

Install dependent gems

Use bundler:

$ gem install bundler --version 1.17.3
$ bundle install --path vendor/bundle

Install dependent JavaScript packages

Use yarn. See https://yarnpkg.com/en/docs/install to install it to your environment. After install it, run following command:

$ ./bin/yarn install

Run fluentd-ui

$ bin/rails server

Access http://localhost:3000 by web browser.

Run with Docker

$ docker build -t fluent/fluentd-ui:1.0.0 .
$ docker run --net=host fluent/fluentd-ui:1.0.0

Run tests

You need chromedriver or chromiumdriver to run tests.

$ npm install -g chromedriver
Or,
$ brew install chromedriver
Or,
$ sudo apt install chromium-driver

NOTE: chromedriver executable binary should be located under your $PATH.

After that you can run tests by following command:

$ bundle exec rake test

Building fluentd-ui.gem

# Generate ChangeLog.md and increment version
$ bin/rails release:prepare

# Clear tmp/, public/assets and public/packs
$ bin/rails tmp:clear assets:clobber && touch tmp/.gitkeep

# Generate pre-compiled assets
$ RAILS_ENV=production bin/rails assets:precompile

# fluentd-ui X.X.X built to pkg/fluentd-ui-X.X.X.gem.
$ RAILS_ENV=production bin/rails build

# Push to rubygems.org
$ bin/rails release