Class: Fluent::Plugin::QueryFingerprintFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/fluent/plugin/filter_query_fingerprint.rb

Defined Under Namespace

Modules: Fingerprinter

Instance Method Summary collapse

Instance Method Details

#filter(tag, time, record) ⇒ Object



27
28
29
30
# File 'lib/fluent/plugin/filter_query_fingerprint.rb', line 27

def filter(tag, time, record)
  record[@fingerprint_key] = Fingerprinter.fingerprint(record[@query_key], preserve_embedded_numbers: @preserve_embedded_numbers)
  record
end