-
I'm trying with no luck to delete the Body using the transformprocessor.
But nothing seems to work. Am I missing an obvious way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @azagarelz, the
As an alternative, you can set it to empty string (or any other supported type): - context: log
statements:
- set(body, "") Resulting in something like: "body": {
"stringValue": ""
} Instead of empty when "body": {} You can test that out here, if that does not work for you, I suggest you to open an issue to further discuss it. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @azagarelz, the
set
function currently does not allow settingnil
values, that's why your statement is not changing the log data.As an alternative, you can set it to empty string (or any other supported type):
Resulting in something like:
Instead of empty when
nil
:"body": {}
You can test that out here, if that does not work for you, I suggest you to open an issue to further discuss it. Thanks!