No commit activity in last 3 years
No release in over 3 years
A Fluent filter plugin to convert sql to sql's fingerprint
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

< 2, >= 0.14.0
 Project Readme

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

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