Sha256: f8878859c1c736f7ba0fcc848b42c99cf17d231b60ac619791f799e3bdf1ea0b
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
# fluent-plugin-num-comparison [![RakeTest](https://github.com/homirun/fluent-plugin-num-comparison/actions/workflows/test.yaml/badge.svg)](https://github.com/homirun/fluent-plugin-num-comparison/actions/workflows/test.yaml) 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: ```ruby gem "fluent-plugin-num-comparison" ``` And then execute: ``` $ bundle ``` ## Configuration ### InputExample ```json {"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 ```json {"access_count": 30}, {"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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-num-comparison-0.1.0 | README.md |