Class: Fluent::Plugin::PostgreSQLRedactor

Inherits:
Filter
  • Object
show all
Includes:
QueryNormalizer
Defined in:
lib/fluent/plugin/filter_postgresql_redactor.rb

Instance Method Summary collapse

Methods included from QueryNormalizer

#normalize_and_fingerprint_query

Instance Method Details

#filter(_tag, _time, record) ⇒ Object



25
26
27
28
29
30
31
32
33
34
# File 'lib/fluent/plugin/filter_postgresql_redactor.rb', line 25

def filter(_tag, _time, record)
  opts = {
    input_key: @input_key,
    output_key: @output_key,
    fingerprint_key: @fingerprint_key,
    max_length: @max_length
  }

  normalize_and_fingerprint_query(record, opts)
end