Re: Sitescope log file monitoring Content match (379 Views)
Reply
Occasional Contributor
Santhosh_Nair
Posts: 7
Registered: ‎10-11-2012
Message 1 of 4 (436 Views)
Accepted Solution

Sitescope log file monitoring Content match

[ Edited ]

I need to configure a log file monitoring. Content match in the requirement is for the string rc=X, where X can be 8 or any number higher than 8.

I tired several options from the Sitescope help site. ( like rc=[8-99] , rc={8,99} etc. But did not work.

Please help.

HP Expert
Dmitry Shevchenko
Posts: 4,854
Registered: ‎01-30-2008
Message 2 of 4 (423 Views)

Re: Sitescope log file monitoring Content match

Use regular expression as rc=(\d+)

It will match and extract any number. Then set monitor thresholds accordingly - to compare the extracted value with 8 and decide whether your monitor status will be ok (>=8) or error (<8).

Occasional Contributor
Santhosh_Nair
Posts: 7
Registered: ‎10-11-2012
Message 3 of 4 (412 Views)

Re: Sitescope log file monitoring Content match

Thanks very much Dmitry for the solution.

HP Expert
PatWest
Posts: 833
Registered: ‎03-06-2008
Message 4 of 4 (379 Views)

Re: Sitescope log file monitoring Content match

You may try http://www.regexplanet.com for future queries on regular expressions as well.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.