Learn more
Please note that GitHub no longer supports Internet Explorer versions 7 or 8.

We recommend upgrading to the latest Internet Explorer, Google Chrome, or Firefox.

If you are using IE 9 or later, make sure you turn off "Compatibility View".

This repository
branch: master

fix README

latest commit dbd9a42a41
choplin authored
Octocat-spinner-32 bin initial commit
Octocat-spinner-32 lib 0.0.2
Octocat-spinner-32 spec initial commit
Octocat-spinner-32 .gitignore initial commit
Octocat-spinner-32 .rspec initial commit
Octocat-spinner-32 .travis.yml initial commit
Octocat-spinner-32 Gemfile initial commit
Octocat-spinner-32 LICENSE.txt initial commit
Octocat-spinner-32 README.md fix README
Octocat-spinner-32 Rakefile initial commit
Octocat-spinner-32 fluent-tail.gemspec fix spec.license
README.md

Fluent::Tail

Using fluent-tail, you can tail fluentd event stream without any configuration changes.

Caution

Because this tool modify the running fluentd process using drb and instance_eval, there is a potential risk that the process could be broken unexpectedly.

In addition, this tool might degrade the perfermance of the running fluentd process.

Use this tool at your own risk.

Installation

$ fluent-gem install fluent-tail

Prerequisite

in_debug_agent plugin is required to be enabled.

<source>
  type debug_agent
</source>

Usage

$ fluent-tail <tag_pattern>

You can specify a pattern of tag with the same format as fluentd match tag.

e.g.

$ fluent-tail foo.**

then events with tag, such as "foo" , "foo.bar" and "foo.bar.foo" etc., will be shown in your console.

2014-03-06 14:22:21 +0900 foo: {"hoge":"fuga"}
2014-03-06 14:22:23 +0900 foo.bar: {"hoge":"fuga"}
2014-03-06 14:22:27 +0900 foo.bar.foo: {"hoge":"fuga"}

Option

parameter description default
-h, --host HOST fluent host 127.0.0.1
-p, --port PORT debug_agent 24230
-u, --unix PATH use unix socket instead of tcp
-t, --output-type TYPE output format of record. available types are 'json' or 'hash'. json

Copyright

See LICENSE.txt

Contributing

  1. Fork it ( http://github.com/choplin/fluent-tail/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.