- Issue created by @Murz
For Syslog pretty often the format used is "logfmt", so instead of the default format that we have:
!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message
people use this one:
base_url="!base_url" timestamp="!timestamp" type="!type" ip="!ip" request_uri="!request_uri" referer="!referer" uid="!uid" link="!link" message="!message"
But this format breaks if the message contains the "
symbol. For example, this happens on a node save event with a title that includes quotes.
The same problem can appear also with the default format if the "message" got |
symbol.
1. Configure the "logfmt" format of syslog record:
base_url="!base_url" timestamp="!timestamp" type="!type" ip="!ip" request_uri="!request_uri" referer="!referer" uid="!uid" link="!link" message="!message"
2. Save a node with a title that includes quotes, like this: Hello "world"! | "Aloha!
.
3. Try to parse the string using the "logfmt" format.
Add an option "Add slashes" that will call the "addslashes" function for the message text.