• 投稿者:
  • 投稿カテゴリー:Fluentd





root@hostname:/home/shimizu# gem install dummer
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: sigdump-0.2.3.gem (100%)
Successfully installed sigdump-0.2.3
Fetching: serverengine-1.5.10.gem (100%)
Successfully installed serverengine-1.5.10
Fetching: msgpack-0.6.0pre1.gem (100%)
Building native extensions.  This could take a while...
Successfully installed msgpack-0.6.0pre1
Fetching: fluent-logger-0.5.0.gem (100%)
Successfully installed fluent-logger-0.5.0
Fetching: dummer-0.3.5.gem (100%)
Successfully installed dummer-0.3.5
Parsing documentation for dummer-0.3.5
Installing ri documentation for dummer-0.3.5
Parsing documentation for fluent-logger-0.5.0
Installing ri documentation for fluent-logger-0.5.0
Parsing documentation for msgpack-0.6.0pre1
Installing ri documentation for msgpack-0.6.0pre1
Parsing documentation for serverengine-1.5.10
Installing ri documentation for serverengine-1.5.10
Parsing documentation for sigdump-0.2.3
Installing ri documentation for sigdump-0.2.3
Parsing documentation for thor-0.19.1
Installing ri documentation for thor-0.19.1
Done installing documentation for dummer, fluent-logger, msgpack, serverengine, sigdump, thor after 4 seconds
6 gems installed

root@hostname:/home/shimizu# gem list | grep dummer
dummer (0.3.5)

root@hostname:/home/shimizu# dummer -c /etc/dummer.conf
fatal: Not a git repository (or any of the parent directories): .git
Could not find gem 'rspec (>= 0) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.

root@hostname:/home/shimizu# gem install rspec
Fetching: rspec-support-3.3.0.gem (100%)
Successfully installed rspec-support-3.3.0
Fetching: rspec-core-3.3.1.gem (100%)
Successfully installed rspec-core-3.3.1
Fetching: diff-lcs-1.2.5.gem (100%)
Successfully installed diff-lcs-1.2.5
Fetching: rspec-expectations-3.3.0.gem (100%)
Successfully installed rspec-expectations-3.3.0
Fetching: rspec-mocks-3.3.1.gem (100%)
Successfully installed rspec-mocks-3.3.1
Fetching: rspec-3.3.0.gem (100%)
Successfully installed rspec-3.3.0
Parsing documentation for diff-lcs-1.2.5
Installing ri documentation for diff-lcs-1.2.5
Parsing documentation for rspec-3.3.0
Installing ri documentation for rspec-3.3.0
Parsing documentation for rspec-core-3.3.1
Installing ri documentation for rspec-core-3.3.1
Parsing documentation for rspec-expectations-3.3.0
Installing ri documentation for rspec-expectations-3.3.0
Parsing documentation for rspec-mocks-3.3.1
Installing ri documentation for rspec-mocks-3.3.1
Parsing documentation for rspec-support-3.3.0
Installing ri documentation for rspec-support-3.3.0
Done installing documentation for diff-lcs, rspec, rspec-core, rspec-expectations, rspec-mocks, rspec-support after 10 seconds
6 gems installed

root@hostname:/home/shimizu# gem install pry
Fetching: coderay-1.1.0.gem (100%)
Successfully installed coderay-1.1.0
Fetching: slop-3.6.0.gem (100%)
Successfully installed slop-3.6.0
Fetching: method_source-0.8.2.gem (100%)
Successfully installed method_source-0.8.2
Fetching: pry-0.10.1.gem (100%)
Successfully installed pry-0.10.1
invalid options: -SNw2
(invalid options are ignored)
Parsing documentation for coderay-1.1.0
Installing ri documentation for coderay-1.1.0
Parsing documentation for method_source-0.8.2
Installing ri documentation for method_source-0.8.2
Parsing documentation for pry-0.10.1
Installing ri documentation for pry-0.10.1
Parsing documentation for slop-3.6.0
Installing ri documentation for slop-3.6.0
Done installing documentation for coderay, method_source, pry, slop after 8 seconds
4 gems installed

root@hostname:/home/shimizu# gem install pry-nav
Fetching: pry-nav-0.2.4.gem (100%)
Successfully installed pry-nav-0.2.4
Parsing documentation for pry-nav-0.2.4
Installing ri documentation for pry-nav-0.2.4
Done installing documentation for pry-nav after 0 seconds
1 gem installed

root@hostname:/home/shimizu# dummer -c /etc/dummer.conf
fatal: Not a git repository (or any of the parent directories): .git
Bundler could not find compatible versions for gem "msgpack":
  In Gemfile:
    dummer (>= 0) ruby depends on
      fluent-logger (>= 0) ruby depends on
        msgpack (!= 0.5.0, != 0.5.1, != 0.5.2, != 0.5.3, < 0.6.0, >= 0.4.4) ruby
Could not find gem 'msgpack (!= 0.5.0, != 0.5.1, != 0.5.2, != 0.5.3, < 0.6.0, >= 0.4.4) ruby', which is required by gem 'fluent-logger (>= 0) ruby', in any of the sources.

root@hostname:/home/shimizu# aptitude install libmsgpack-dev ruby-msgpack
  libmsgpack-dev libmsgpack3{a} libmsgpackc2{a} ruby-msgpack

root@hostname:/home/shimizu# dummer -c /etc/dummer.conf
WARN: Unresolved specs during Gem::Specification.reset:
      msgpack (!= 0.5.0, != 0.5.1, != 0.5.2, != 0.5.3, < 0.6.0, >= 0.4.4)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
fatal: Not a git repository (or any of the parent directories): .git
^CI, [2015-07-03T09:33:46.333229 #14569]  INFO -- : Received graceful stop
I, [2015-07-03T09:33:46.370894 #14569]  INFO -- : Worker 0 finished with status 0

root@hostname:/home/shimizu# cat dummy.log
id:3684 time:[2015-07-03 09:32:51]      level:WARN      method:PUT      uri:/api/v1/people      reqtime:0.8766459623053487      foobar:HGzDxxSA
id:3685 time:[2015-07-03 09:32:51]      level:ERROR     method:POST     uri:/api/v1/textdata    reqtime:0.2770539070927347      foobar:JUnRov8K
id:3686 time:[2015-07-03 09:32:51]      level:ERROR     method:POST     uri:/api/v1/textdata    reqtime:4.14037143766365        foobar:cdeLHDUR
id:3687 time:[2015-07-03 09:32:51]      level:DEBUG     method:PUT      uri:/api/v1/people      reqtime:2.3861638315937443      foobar:t4xxCchD
id:3688 time:[2015-07-03 09:32:51]      level:DEBUG     method:GET      uri:/api/v1/people      reqtime:0.582188716135604       foobar:kuTtipP8
id:3689 time:[2015-07-03 09:32:51]      level:WARN      method:GET      uri:/api/v1/textdata    reqtime:2.1473312915598544      foobar:txgugKVc
id:3690 time:[2015-07-03 09:32:51]      level:WARN      method:GET      uri:/api/v1/textdata    reqtime:4.466769984518664       foobar:z6eUw2XI


Fluentd のベンチマークテストに使える dummer (旧称 dummy_log_generator)