Fingerprint plugin: make base64encode url friendly

I am using the fingerprint plugin to create custom _id fields that should be base64 encoded:

  fingerprint {
    key => "somekey"
    base64encode => true
    method => "SHA512"
    source => [ "username" ]
    target =>  "[@metadata][custom_id]"
   }

   truncate {
    fields =>  "[@metadata][custom_id]"
    length_bytes => 20
   }

However, here is an example key that was created:

lStqstfpWw5OHe+B3FBi

The above is NOT url friendly therefore manipulation by id becomes cumbersome since it needs encoding/decoding.

Any suggestion to make the _id url friendly?

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