LoginSignup
15
15

More than 5 years have passed since last update.

Fluentd on Windows with Ruby 2.2

Last updated at Posted at 2015-09-07

Introduction

You may know, fluentd works on Windows (but not production ready). This article explain how to run (for testing).

RubyInstaller

Download Ruby and DevKit from RubyInstallre Downloads.

  • Ruby 2.2.x (x64)
    • Check "Add Ruby executables to your PATH"
  • DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
    • run ruby dk.rb init
    • edit config.yml
    • run ruby dk.rb install

Git

Get git installer from Download for Windows and run it.
During install, specify "Run Git from the Windows Command Prompt" on "Adjusting your PATH environment" screen.

Fluentd v12 for Windows

gem is not prepared yet. Therefore you need to make a gem and install as following.

git clone https://github.com/fluent/fluentd.git
cd fluentd
gem install bundler
bundle
bundle exec rake build
gem install pkg\fluentd-0.12.25.gem

Note: If the last command failed, browse to 'fluentd\pkg' to determine the current build number. For instance, the correct command could look like the following.

gem install pkg\fluentd-0.14.0.gem

Now you successfully installed.

Run!

Prepate configuration and run it.

fluentd -c ./example/in_forward.conf

Conclusion

Fluentd works on Windows but still needs more testers. If you find any bugs on testing, please report it on GitHub!

15
15
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
15