cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

AntonioSousa
DynaMight Guru
DynaMight Guru

In Classic Log processing, I'm trying to process content that has what seem to be nonexistent escape characters:AntonioSousa_0-1755128962124.png

I'm trying to extract "asousa" but with no success. I can get partial results, but I can't even "Save changes"...

Any ideas?

Antonio Sousa
6 REPLIES 6

Hi @AntonioSousa ,

 

A back slash will not help here ?

 

Screenshot 2025-08-13 at 9.51.28 PM.png

Screenshot 2025-08-13 at 9.54.39 PM.png

!!! Dynatrace !!!

@Akhil-Jayendran 

Thanks for the suggestion, but in my case, in content, there's only one '\' ...

Antonio Sousa

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 
Screenshot 2025-08-14 at 7.15.34 AM.png

!!! Dynatrace !!!

@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...

Antonio Sousa

Hello @AntonioSousa ,

That’s correctScreenshot 2025-08-14 at 10.38.15 AM.pngScreenshot 2025-08-14 at 10.39.16 AM.png, 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.


 

!!! Dynatrace !!!

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi @AntonioSousa 

You can change the log sample and add another \ 

Before:

Yosi_Neuman_0-1755333413900.png

After 

Yosi_Neuman_1-1755333471196.png

Not sure if after saving this parse will work 🤔... but at least is saved 😉

HTH 

Yos 

 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts