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
TextLog test: Invalid expression, Unknown operator found
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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)?
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'.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
- 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
- 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