Systems Management (OpenView-OP Mgmt) Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern Matching Assistance using xml as log file in OMW 8.10

Brian01
Occasional Contributor

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>

 

2 REPLIES
Bhavik_Mehta
Occasional Contributor

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

Highlighted
hp4u
Frequent Visitor

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

Hi Brian,

Can you provide your logfile?

Regards,
hp4u
//Add this to "OnDomLoad" event