#安装ruby
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
tar zxf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --prefix=/usr/local --disable-install-doc --with-opt-dir=/usr/local/lib
make && make install
#安装fluent
git clone https://github.com/fluent/fluentd.git
cd fluentd/
gem install bundler
rake build
gem install pkg/fluentd-0.10.39.gem
#完成安装,下面是使用
fluentd --setup ./fluent
fluentd -c ./fluent/fluent.conf -vv &
echo '{"json":"message"}' | fluent-cat debug.test