I've been trying to configure a log check sensor to find a text as the following example: DC = "1" In site = "2" Right found: "SecurityPrividege"

Following the recomendation from your help document, i went to www.regexpal.com to try an expression and i got this to work:

( DC = "1"\n In site = "2"\n Right found: "SecurityPrividege")

(Note i use the \n as a eol)

PRTG didn't find the string. Could you point me at some examples to follow to get this working?

Thanks


Article Comments

Hi Miquel,

My favorite tool for building Regular Expressions is Expresso from Ultrapico

Using this tool to find your text:

DC = "1"
In site = "2"
Right found: "SecurityPrividege"

I come up with:

DC\s=\s"1"\r\nIn\ssite\s=\s"2"\r\nRight\sfound:\s"SecurityPrividege"

Regards,


Feb, 2012 - Permalink

Thanks for you sugesttion. I tried it, and even tested it before with "Expresso" (great tool by the way) and it didn't work. PRTG seems to be unable to find the junp of lines (\r\n). Anybody had got something like this working? Paessler support, do you have limitations on how you can use RegExp on PRTG? Many thanks.


Feb, 2012 - Permalink