Generate UUID of the String(field) in logstash

want to generate consistent UUID(Just like MD5) of the String(field) in logstash.
Tried Using fingerprint with UUID but it gives random UUID.

That's right, the documentation says that ' When the target option is set to UUID the result won’t be a consistent hash but a random UUID." Obviously when it says 'target' it means 'method'. If you want to use MD5 then set the method option to MD5, although why anyone in the last 20 years would ever use MD5 is a mystery to me.

looking for something like

UUID.nameUUIDFromBytes("d41d8cd9-8f00-3204-a980-0998ecf8427e|172.31.43.240|0.0.0.0|58528|TCP".getBytes())

in java

looking for something like

UUID.nameUUIDFromBytes("d41d8cd9-8f00-3204-a980-0998ecf8427e|172.31.43.240|0.0.0.0|58528|TCP".getBytes())

in java

I think you would have to write it in a ruby filter.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.