I need an example of iRule that logging CGNAT with HSL

Hello everyone, I need an example of an irule that registers the translations of CGNAT through HSL In the implementation manual comes the way of Configuring local logging for CGNAT, but what I need is to modify the format in which I send the data, the only way I saw is through an IPFIX collector and an iRule, but it does not come An example of how to do that iRule.

I hope someone can give me an example or another way of being able to configure the registry in a personalized way

Best regards