No release in over 3 years
Low commit activity in last 3 years
Simple Fluentd Plugin to count number of messages and outputs to log
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 1.0
 Project Readme

fluent-plugin-flowcounter-simple Build Status

Simple Fluentd Plugin to count number of messages and outputs to log

Requirements

fluent-plugin-flowcounter-simple fluentd ruby
>= 0.1.0 >= v1.0 >= 2.4
< 0.0.4 >= v0.12.0 >= 2.1

Filter Plugin Configuration

<filter foo.bar.**>
  type flowcounter_simple
  unit second
</filter>

This filter plugin pass through records, and writes counts into the log file as

plugin:out_flowcounter_simple  count:30  indicator:num  unit:second

Output Plugin Configuration

<match foo.bar.**>
  type flowcounter_simple
  unit second
</match>

This plugin does not emit, just writes counts into the log file as

plugin:out_flowcounter_simple  count:30  indicator:num  unit:second

Parameters

  • unit

    One of second/minute/hour/day. Default: minute

  • indicator

    One of num/byte. Default: num

  • comment

    Just a comment. You may use this to mark where you put flowcounter_simple.

Relatives

There is a fluent-plugin-flowcounter, but I needed a very very simple plugin to use for performance evaluation.

Contributing

  1. Fork it
  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

Copyright

Copyright (c) 2013 Naotoshi Seo. See LICENSE.txt for details.