fluent-plugin-rewrite
fluent-plugin-rewrite copied to clipboard
How do I replace all \n to literally a new line
My log includes a "\n" as string, can I use this plugin to replace it to a legit newline before sending to my output (ex: elasticsearch)?
<filter **>
@type rewrite
<rule>
key log
pattern \\n
replace \n
</rule>
</filter>
Or how do you prevent escaping
pattern \\
replace \
Seems like after replacing, it's also escaping it and that's why the result is still double backslash
Would you send a pr?