Metric grouping Agent expression - how to ignore case sensitivity?

Document ID : KB000016029
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Metric grouping Agent expression - how to ignore case sensitivity?

Environment:
Valid for any APM release
Answer:

If you want only part of the regex to be case insensitive, use the (?i) and (?-i) modifiers

Below some examples, lets assume you have the below 7 agent processes:

TEST0.jpg

Example 1: You would like to have this agent expression case insensitive: (.*) \-TEST\|(.*)

Solution: (.*)\|.*\-(?i)TEST(?-i).*\|(.*)

Only 6 agents are included as part of the metric grouping

TEST1.jpg

Example#2: You would like only "TES" to be case insensitive

Asnwer: (.*)\|.*\-(?i)TES(?-i)t.*\|(.*)

Only 4 agents are included as part of the metric grouping

TEST2.jpg

Example#3: You would like only "ES" as case sensitive

Answer: (.*)\|.*\-T(?i)ES(?-i)T.*\|(.*)

Only 1 agent is included as part of the metric grouping

TEST4.jpg

Additional Information:

Regular Expressions and Metric Groupings Guide : https://communities.ca.com/docs/DOC-231156760