Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fluent-plugin-num-comparison

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-plugin-num-comparison

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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": 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(c) 2021- homirun
  • License
    • MIT

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc