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

fluent-plugin-sql_fingerprint

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-sql_fingerprint

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

fluent-plugin-sql_fingerprint

Build Status

A Fluent filter plugin to convert sql to sql's fingerprint.

Requirements

Fluentd >= v0.14

Install

gem install fluent-plugin-sql_fingerprint

Configuration Example

<filter tag.dummy.*>
  type sql_fingerprint
  fingerprint_tool_path /usr/bin/pt-fingerprint
</filter>

sample

record before filter

{
  "sql": "SELECT * FROM demo WHERE record = 'AAA';"
}

record after filter

{
  "sql": "SELECT * FROM demo WHERE record = 'AAA';",
  "fingerprint": "select * from demo where record = ?"
}

Parameters

  • fingerprint_tool_path (required)

    Tool path which generates fingerpint. It must input from standard input and output to standard output. Ex. pt-fingerprint (see https://www.percona.com/doc/percona-toolkit/2.2/index.html)

  • target_key

    The key which was passed to standard input of fingerprint_tool. Default is sql.

  • added_key

    The key which was added to new record that holds fingerprint generated by fingerpinrt_tool. Default is fingerprint.

Copyright (c) 2015 Takahiro Kikumoto. See LICENSE for details.

FAQs

Package last updated on 22 Mar 2018

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