No commit activity in last 3 years
No release in over 3 years
This plugin that compares thresholds and extracts only the larger or smaller ones.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 0.14.10, < 2
 Project Readme

fluent-plugin-num-comparison

RakeTest

fluent-plugin-num-comparison is a fluent-plugin that compares the value of a specified key with a threshold value and extracts only the larger or smaller ones.

Installation

RubyGems

$ gem install fluent-plugin-num-comparison

Bundler

Add following line to your Gemfile:

gem "fluent-plugin-num-comparison"

And then execute:

$ bundle

Configuration

InputExample

{"access_count": 29}
{"access_count": 30}
{"access_count": 31}

ConfigExample

<source>
  @type tail
  path input.txt
  pos_file input.pos
  format json
  tag test
</source>

<filter test>
  @type num_comparison
  record_key access_count
  threshold 30
  inequality larger
</filter>

<match test>
  @type stdout
</match>

OutputExample

{"access_count": 31}

Params

  • record_key: string
    The key of the event record to be compared.

  • threshold: integer
    The threshold value to compare with the event record.

  • inequality: string (larger || smaller)
    Decide whether to output a comparison object that is larger or smaller than the threshold. The default value is larger.

Copyright

  • Copyright(c) 2021- homirun
  • License
    • MIT