Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zonomasa/99f253e5786999cb2343 to your computer and use it in GitHub Desktop.
Save zonomasa/99f253e5786999cb2343 to your computer and use it in GitHub Desktop.
Ubuntu14.04 にfluentd をインストールする
## インストール
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install 2.1.2
$ gem install fluent
## 確認
$ fluentd --setup ./fluent
$ fluentd -c ./fluent/fluent.conf -vv &
$ echo '{"json":"message"}' | fluent-cat debug.test
2011-07-10 16:49:50 +0900 debug.test: {"json":"message"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment