Highlighted
Micro Focus Expert
Micro Focus Expert
326 views

$MATCH Operator Syntax

Jump to solution

Hello Support,

 

I need to set an OM event message text using $MATCH operator like:

 

TOMCAT server path is C:\\tmp\\$MATCH(<$LOGPATH>, <*>temp\\\\<@.application>\\\\<*>, <application>, Unknown)\\conf\\server.xml

 

where $LOGPATH is C:\temp\applicazione\catalina.101.txt

 

This syntax is not correct infact it convert in a wrong way like (with "(" character 😞

 

TOMCAT server path is C:\tmp\(applicazione\conf\server.xml

 

I have already tried some different configuration using character like <>, [], "" but unsuccesfully.

 

Please can you help me understanding the correct syntax in order to get this result (without "(" 😞

 

TOMCAT server path is C:\tmp\applicazione\conf\server.xml

 

Thanks.

Regards

Fabrizio

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

From my perspective (and I'm not an expert in this $MATCH syntax), it seems like a bug in the agent if there are backslashes before or after the $MATCH expression.

 

What you could try is to include the backslash in the application variable like this:

C:\\tmp$MATCH(C:\temp\applicazione\catalina.101.txt, <*>temp<@.application>cat<*>, <application>, Unknown)conf\\server.xml

 

View solution in original post

2 Replies
Highlighted
Absent Member.
Absent Member.

From my perspective (and I'm not an expert in this $MATCH syntax), it seems like a bug in the agent if there are backslashes before or after the $MATCH expression.

 

What you could try is to include the backslash in the application variable like this:

C:\\tmp$MATCH(C:\temp\applicazione\catalina.101.txt, <*>temp<@.application>cat<*>, <application>, Unknown)conf\\server.xml

 

View solution in original post

Highlighted
Micro Focus Expert
Micro Focus Expert

Great ! It works fine now!

 

Thanks a lot !

 

Fabrizio

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.