TextLog test: Invalid expression, Unknown operator found

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
rc
Posts: 100
Joined: Mon Aug 01, 2005 7:51 am

TextLog test: Invalid expression, Unknown operator found

Post by rc »

Hi Aleks,

I don't understand the Reply message from this text log test:

Tested object info : Text log file D:\jboss7\standalone\log\solvencyCheckService_error.log on localhost
Status : Unknown
Reply : Invalid expression: Unknown operator: "&'"


What does it mean?
HostMonitor should search a specific string and not an expression.
It seems that HostMonitor try to interpret the found text as expression.
This makes no sense in my opinion.

My test settings:
File = D:\jboss7\standalone\log\solvencyCheckService_error.log
FileMacros = No
AlertMode = LastEvent
ReplyMode = Line
ReplyFilter = WholeLine
ReplyRange1 = 0
ReplyRange2 = 0
TestOkMode = IfNoBadEvent
BadFilter = 1
LookFor = ERROR
LookMode = String
MatchCase = Yes
WholeWord = No
UseMacros = No
Encoding = ASCII
CodePage = 1252


Here is the original found line from this text log:
2013-02-05 06:17:09,923 ERROR.TEXT=Error in UserDefinedFunction Normierung_Text: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. Exception: de.insiders.dss.core.SchufaException: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'.

Many thanks in advance!

Enrico
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Cannot reproduce this error.
What HostMonitor version do you use ?

Is this exact text in your log file(D:\jboss7\standalone\log\solvencyCheckService_error.log)?
2013-02-05 06:17:09,923 ERROR.TEXT=Error in UserDefinedFunction Normierung_Text: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. Exception: de.insiders.dss.core.SchufaException: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'.
rc
Posts: 100
Joined: Mon Aug 01, 2005 7:51 am

Post by rc »

We use Advanced Host Monitor v 9.32 and the test is executed by RMA v 4.53
The text line from the log file is a bit stripped-down. I can send you the hole line to your private address
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Please send whole line or log file to support@ks-soft.net
rc
Posts: 100
Joined: Mon Aug 01, 2005 7:51 am

Post by rc »

Ok, I sent you the hole line from logfile to support@ks-soft.net
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

- You are using '%SuggestedReply%'=='RMA: Connection error' expression for "Normal" status
- You are using ReplyFilter:WholeLine option for the test
- Log contains string with quotation marks.

The same marks used for logical expression. This means %SuggestedReply% variable contains quotation marks so expression '%SuggestedReply%'=='RMA: Connection error' cannot be evaluated properly.

Solution? If your log file does not contain strings with "" marks, use these marks instead of ''

Regards
Alex
rc
Posts: 100
Joined: Mon Aug 01, 2005 7:51 am

Post by rc »

Ok, I understand the problem and I will try your solution.

Thank you
Enrico
Post Reply