Giter Club home page Giter Club logo

fluent-plugin-riemann's Introduction

Fluent::Plugin::Riemann

fluent-plugin-riemann is a fluentd output plugin that allows you to forward logs collected with fluentd to riemann.

Installation

Add this line to your application's Gemfile:

gem 'fluent-plugin-riemann'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fluent-plugin-riemann

Usage

<match riemann.**>
  type riemann
  host localhost
  port 5555
  timeout 5
  protocol tcp
  service test log messages
  fields message:description,level:state,metric
  types metric:float
  flush_interval 10s
</match>

Contributing

  1. Fork it ( http://github.com/wkf/fluent-plugin-riemann/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

fluent-plugin-riemann's People

Contributors

mirwan avatar wkf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fluent-plugin-riemann's Issues

"undefined method `&'" error

I get the following error when trying to use the fluentd riemann plugin.

2015-07-14 11:49:29 +0100 [warn]: temporarily failed to flush the buffer. next_retry=2015-07-14 11:49:30 +0100 error_class="NoMethodError" error="undefined method &' for 1436870957.640452:Float" plugin_id="object:f581b0" 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake/buffer/encode.rb:86:inappend_uint64'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake/buffer/encode.rb:61:in append_int64' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake/buffer/encode.rb:13:inappend'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:126:in block in encode!' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:114:ineach'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:114:in encode!' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:103:inblock in encode'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:96:in each' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:96:inencode'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:118:in block in encode!' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:114:ineach'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:114:in encode!' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:103:inblock in encode'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:96:in each' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/beefcake-1.1.0/lib/beefcake.rb:96:inencode'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/riemann-client-0.2.5/lib/riemann/message.rb:12:in encode_with_length' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/riemann-client-0.2.5/lib/riemann/client/tcp.rb:78:inblock in send_recv'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/riemann-client-0.2.5/lib/riemann/client/tcp.rb:92:in block in with_connection' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/2.1.0/monitor.rb:211:inmon_synchronize'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/riemann-client-0.2.5/lib/riemann/client/tcp.rb:89:in with_connection' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/riemann-client-0.2.5/lib/riemann/client/tcp.rb:77:insend_recv'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/riemann-client-0.2.5/lib/riemann/client.rb:63:in <<' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-riemann-0.0.3/lib/fluent/plugin/out_riemann.rb:61:inblock in write'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.12/lib/fluent/plugin/buf_memory.rb:61:in feed_each' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.12/lib/fluent/plugin/buf_memory.rb:61:inmsgpack_each'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-riemann-0.0.3/lib/fluent/plugin/out_riemann.rb:51:in write' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.12/lib/fluent/buffer.rb:325:inwrite_chunk'
2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.12/lib/fluent/buffer.rb:304:in pop' 2015-07-14 11:49:29 +0100 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.12/lib/fluent/output.rb:321:intry_flush'

config:

type riemann
host btn-docker-03
#port 5555
timeout 60
protocol tcp
service logs
fields message:description,level:state
types metric:float
flush_interval 10s

td-agent version: 0.12.12

The port parameter is NOT used

This can be seen in the log output, there's a warning coming from fluent/engine.rb line 81 or so.

So the port parameter is just ignore for some reason, when the plugin is initialized/configured.

Usage of fields

I want to send apache/nginx log to riemann. It works but it doesn't send details like description, state, metric to riemann. How to use fields options or pass data to those fields.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.