Use case: I need to generate a UUID in a watcher transform script to use in an API call which creates an event on another system with a UUID, which I can also write to an ES doc so that I can link the events in the other system with documents in ES.
I know that UUID.randomuuid() exists in Groovy but is not whitelisted in Painless. Is there an alternative that I can use to create a UUID?