Add the possibility to process or transform the message #164
Labels
agent-java
community
Issues and PRs created by the community
triage
Issues and PRs that need to be triaged
I need to be able to transform some messages. For example obfuscate some information. I want to be able to do that at the encoder level and not before on several components.
Now a days, the encode method add the message using
event.getFormattedMessage()
It could be very useful if we can add something similar to the following at the ECSEncoder class:
And at the encode method
EcsJsonSerializer.serializeFormattedMessage(builder, processMessage(event));
What do you think?
The method name could be process, transform, or just getMessage...
The text was updated successfully, but these errors were encountered: