Hi,
I would like to shorten the content of a multiline field from xxx characters. This regx works in a Regex Online Tester.
(?m) (. {50}?). *$
In the telegraph, however, each line is truncated after 50 characters:
[[processors.regex]]
namepass = ["win_eventlog"]
[[processors.regex.fields]]
## Field to change
key = "Message"
pattern = "(?m)(.{ 50}?). *$"
replacement = "${1} - message has been truncated"
What can I do to ensure that the whole message is truncated after xxx characters and not every line?
Regards Markus