I have set up the following rule in a pipeline:
rule "Sophos key value conversion"
when
from_input("598b455e0e5a2804df3ae95e")
then
set_fields
(
fields: key_value
(
value: to_string($message.message),
trim_key_chars: "\"",
trim_value_chars: "\""
)
);
end
This works great for creating fields easily, but when it comes to values that have whitespace they get cut off, like this:

How can I get it to ignore the whitespace if it’s part of a value?