DPL (Classic Logs Processing) with "Unrecognized character escape"

In Classic Log processing, I’m trying to process content that has what seem to be nonexistent escape characters:

I’m trying to extract “asousa” but with no success. I can get partial results, but I can’t even “Save changes”…

Any ideas?

Hi @AntonioSousa ,

A back slash will not help here ?

@Akhil-Jayendran

Thanks for the suggestion, but in my case, in content, there’s only one ‘\’ …

Hi @AntonioSousa ,

The log sample in the processing rule config is a JSON file. The additional backslash is to tell JSON, “I really mean a backslash here.”You escape the backslash itself.

Here is my sample logs

@Akhil-Jayendran ,

In JSON you really have to escape a ‘\’, but in a normal “content” log field, you upload strings, and they are not escaped…

Hello @AntonioSousa ,

That’s correct


, normal log content will always be a string. What I’m trying to say is that, in the log processing rule, we can only provide JSON as sample logs. To make the rule work, we need to use escapes in the logs; otherwise, the rule won’t be accepted.

Hi @AntonioSousa

You can change the log sample and add another \

Before:

After

Not sure if after saving this parse will work :thinking:… but at least is saved :wink:

HTH

Yos