Forum Discussion

Attendant's avatar
Attendant
Icon for Bronze I rankBronze I
29 days ago

It 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

  • Maybe just swap n and r - if not it would help if you'd add the title of the lab to get help.