Forum Discussion
Attendant
Bronze I
20 days agoIt seems correct answer is not accepted.
I think my answer is correct, however, it is not accepted.
Here is the question:
Use replace_string() to remove carriage returns (\r) and newline (\n) literals from the SyslogMessage column.
Provide your completed replace_string function as the answer.
Here is my answer:
replace_string(SyslogMessage, "\\n\\r", "")
Whole query:
Syslog
| extend CleanMSG = replace_string(SyslogMessage, "\\n\\r", "")
I might be missing something here, however, can't figure out.
Appreciate any hints.
1 Reply
- netcat
Silver III
Maybe just swap n and r - if not it would help if you'd add the title of the lab to get help.