Use normal Status with Substring search

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Use normal Status with Substring search

Post by MirkoW »

Hello,

I'm using the "Text Log" Test for searching for "error" in a file. How can i exclude follow reply: "27.04.2025 23:49:06: No error occured"
"in" doesn't work for "use normal state"
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Use normal Status with Substring search

Post by KS-Soft »

1) HostMonitor version?

2) Test settings: filter setting? what exactly expression do you use?

3) As we see "IN" operator works just fine

4) I don't think you need "Use Normal status" option in this case. You may setup filter using the following option
- Bad record: look for simple expression 'error' and not 'No error occured'

5) Do you really want to ignore just 1 record added at 27.04.2025 23:49:06?
I assume you need to ignore all records with "No error occured" text regardless of the time?

6) Are you sure you need to ignore "No error occured" text?
May be "No error occurred"? RR instead of R

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Re: Use normal Status with Substring search

Post by MirkoW »

Thanks for fast response

Here are the needed informations:

1. HostMonitor 14.96
2. atm i use follow 'Bad text" settings: Look for string:

Code: Select all

error
2 when i use

Code: Select all

'no error occured' in %reply%
in Field "Use Normal status if", then i get the reply:

Code: Select all

Invalid expression: missed operand
But i'm checking out the expression option, so i don't need this option

5. I want to ignore all records like

Code: Select all

No error occured
and for example:

Code: Select all

Warning: 'dbo.ErrorLog': Objects to compare have no key column.
but not all other messages with errors.
I guess there could be some more messages to except because i don't know all possible result messages at this time.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Use normal Status with Substring search

Post by KS-Soft »

7 - You should use "%SuggestedReply%" variable in this case

8 - You forgot to use quotation marks, its a string not a number (its safe to use quotation marks for numbers as well)

9 - Make sure you spelled word "occurred" correctly

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Use normal Status with Substring search

Post by KS-Soft »

Please check item #4, this is correct way to setup such test

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Re: Use normal Status with Substring search

Post by MirkoW »

Thanks for fast support !!
I will check out the next results this evening.

Best regards,
Mirko
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Use normal Status with Substring search

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply