Pattern Matching Assistance using xml as log file in OMW 8.10 (186 Views)
Reply
Occasional Advisor
Posts: 9
Registered: ‎06-27-2011
Message 1 of 3 (186 Views)

Pattern Matching Assistance using xml as log file in OMW 8.10

I am trying to match data from a xml file

 

How would I match  a specific pattern in a Logfile Entry Policy?

 

From the below I want to match on CD %ORBITAIOUT%EDIOUT and ConnectException: Connection timed out (errno:238)

 

Upon matching both criteria I want to send a critical event

 

<Event>

<Result text="Exception" command="CD %ORBITAIOUT%EDIOUT" line="5">java.net.ConnectException: Connection timed out (errno:238)</Result>

 

Occasional Advisor
Posts: 11
Registered: ‎09-23-2011
Message 2 of 3 (173 Views)

Re: Pattern Matching Assistance using xml as log file in OMW 8.10

I hope it's not complicated:

 

did you try below rule?

 

<*>CD %ORBITAIOUT%EDIOUT<*>ConnectException: Connection timed out (errno:238)<*>

 

This should match required string.

 

--

Bhavik

Trusted Contributor
Posts: 579
Registered: ‎09-16-2010
Message 3 of 3 (151 Views)

Re: Pattern Matching Assistance using xml as log file in OMW 8.10

Hi Brian,

Can you provide your logfile?

Regards,
hp4u
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.