Giter Site home page Giter Site logo

Fingerprint processor about benthos HOT 5 CLOSED

benthosdev avatar benthosdev commented on May 23, 2024
Fingerprint processor

from benthos.

Comments (5)

Jeffail avatar Jeffail commented on May 23, 2024

Hey @rucciva, if I create a general purpose hash processor you would be able to do the following:

processors:
  - type: json
    json:
      operator: set
      path: id
      value: ${!json_field:some.field}-${!json_field:another.field}
  - type: process_field
    process_field:
      path: id
      processors:
        - type: hash
          hash:
            algorithm: sha256

And then you could use the id as your ES id, would that work for you?

from benthos.

rucciva avatar rucciva commented on May 23, 2024

Yes, that seems great. I hope murmur 3 will be included in the hash algorithm. Looking forward to it

from benthos.

Jeffail avatar Jeffail commented on May 23, 2024

101cfea, is there a specific reason that you wanted murmur 3? There's one or two libraries for it but they seem a little risky to include.

from benthos.

Jeffail avatar Jeffail commented on May 23, 2024

Released in https://github.com/Jeffail/benthos/releases/tag/v0.25.0, if you need murmur 3 support then feel free to open a new ticket.

from benthos.

rucciva avatar rucciva commented on May 23, 2024

Hi @Jeffail , murmur3 is best fit for fingerprint case, since it has big enough space (128 bit) but quite fast. But if you thinks it's too risky then i think i could use the existing algorithm

from benthos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.